Quantcast
Channel: GameDev.net
Viewing all articles
Browse latest Browse all 17825

Rotation matrix multiplication causes Gimbal lock

$
0
0
me.rotation = me.rotation * CreateRotation( 5.0, 0.0, 0.0 ); If i spawn and run this code, pitch increases But if i spawn and turn 90deg left and run this code, it rolls How do i fix this? Edit: I use a standard rotation matrix formula from wikipedia

Viewing all articles
Browse latest Browse all 17825

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>