jpct-ae引擎的坐标系

来源:互联网 发布:c语言文件传输 编辑:程序博客网 时间:2024/05/16 18:46


转载请注明出处   http://blog.csdn.net/wuzhiqun27/article/details/8662246

Coordinate system

From JPCT

jPCT's coordinate system

A few words on jPCT's coordinate system, because it causes some confusion from time to time. In "normal" GL-like coordinate system, positive x goes to the right, y goes up and z comes out of the screen. In jPCT, this is rotated 180° around x, so that x still goes to the right, but positive z goes INTO the screen and positive y goes DOWN. If you want/have to use third party code that uses a different system, some conversion is needed, which should be pretty simple to do.

File:Coordsystem.png‎

 

我的翻译:

jpct引擎坐标系统的几句说明,因为它有时会引起一些混乱。

在“正常”的GL坐标系统中,x轴向右,Y轴向上,Z轴由屏幕想外。

但在jpct中,该坐标系以X轴旋转了180度,也就是说,X轴依然向右,但Y轴变成的向下,Z轴变成的由屏幕外向屏幕内。

所以,在定坐标时,要进行一定的转换,不过我想,这个转换是很简单的。

 

原文地址: http://www.jpct.net/wiki/index.php/Coordinate_system

 

原创粉丝点击