|
发表于 2012-9-30 02:30:00
|
显示全部楼层
Re:关于左右手坐标的问题??
当然ok拉.
D3DXMATRIX * D3DXMatrixRotationX(
D3DXMATRIX * pOut,
FLOAT Angle
);
Parameters
pOut
[in, out] Pointer to the D3DXMATRIX structure that is the result of the operation.
Angle
[in] Angle of rotation in radians. Angles are measured clockwise when looking along the rotation axis toward the origin.
看到clockwise 字样没, 要知道数学上推这种旋转矩阵,转角默认是逆时针,这里出来一个顺时针clockwisr, 说明D3DXMatrixRotation*这个系列函数,其推导的坐标系正是一个右手系!(这也符合常识吧,不要因为directx是左手系,就迷糊了).
总之,旋转是基于右手系来计算的,所以这个转换如果用在右手系,就表示逆时针转,反之,则为顺时针.
|
|