0
軸の角度をワールド座標からオブジェクト座標に変更/回転するにはどうすればよいですか?ワールド軸とローカル軸
は、以下を参照してください。
void RotateMatrix4(float *m, float angle, float *axis);
//This function rotates a matrix in object space
void RotateLocal(float angle, float *axis) {
RotateMatrix4(m, angle, axis)
}
void RotateGlobal(float angle, float *axis) {
//Do something to axis here
RotateMatrix4(m, angle, axis)
}