Prof-Butts / Hook_XWACockpitLook

X-Wing Alliance mouse hook with support for VR head-tracking
6 stars 1 forks source link

Implement roll in CockpitLook #13

Closed morallo closed 2 years ago

morallo commented 2 years ago

New hooks implemented in call to DoRotation() inside UpdateCameraMatrix(), to inject an additional rotation for the roll apply the full rotation matrix from headtracking with matrix multiplication. This gets rid of gimbal lock issues and distortions linked to decomposition in Euler angles.

This breaks some things that need to be fixed.