HUD에는 world의 위쪽 (0, 1, 0)을 차량 기준으로 변환한 값도 표시하도록 했습니다. 차체가 수평이면 대략 (0, 1, 0)이고, 차가 기울면 X/Z 성분이 생깁니다.
주의할 점은 저장소가 yaw·pitch·roll의 정확한 회전 조합 순서와 부호 규칙을 정의하지 않는다는 것입니다. 그래서 yaw(Y) × pitch(X) × roll(Z)를 가정으로 명시했습니다. 컴파일은 성공했지만, 실제 게임에서 평지·pitch만 있는 자세·roll만 있는 자세를 비교해 부호와 순서를 확인해야 합니다.
정리하면.. 모션 시뮬레이터에서는 roll과 pitch로 운전석의 기울기를 표현하면 될 것 같고
yaw의 미분 값의 방향으로 시계, 반시계 방향의 운동량을 표현하면 될 것 같다.
가속도 값으로는 z 축은 의자 자체를 떨구거나 올리기 힘들테니 6축 아니면 힘들 것 같고
x 축은 앞뒤로 기울기고
y 축은 좌우로 기울이면 될테니
사용자가 느끼는 관성의 방향은
x 축 <-> yaw,
y 축 <-> pitch 와는 반대의 방향으로 나타나게 되겠네?
그러면.. 감각을 속이려면 yaw, roll 보단
x,y 가속도 값이 더 중요할 것 같다.
Vertical axis (yaw) The yaw axis has its origin at the center of gravity and is directed towards the bottom of the aircraft, perpendicular to the wings and to the fuselage reference line. Motion about this axis is called yaw. A positive yawing motion moves the nose of the aircraft to the right.[1][2] The rudder is the primary control of yaw.[3]
The term yaw was originally applied in sailing, and referred to the motion of an unsteady ship rotating about its vertical axis. Its etymology is uncertain.[4]
Lateral axis (pitch) The pitch axis (also called transverse or lateral axis),[5] passes through an aircraft from wingtip to wingtip. Rotation about this axis is called pitch. Pitch changes the vertical direction that the aircraft's nose is pointing (a positive pitching motion raises the nose of the aircraft and lowers the tail). The elevators are the primary control surfaces for pitch.[3]
Longitudinal axis (roll) The roll axis (or longitudinal axis[5]) has its origin at the center of gravity and is directed forward, parallel to the fuselage reference line. Motion about this axis is called roll. An angular displacement about this axis is called bank.[3] A positive rolling motion lifts the left wing and lowers the right wing. The pilot rolls by increasing the lift on one wing and decreasing it on the other. This changes the bank angle.[6] The ailerons are the primary control of bank. The rudder also has a secondary effect on bank.[7]