sfml

Using Quaternions for OpenGL Rotations [duplicate]

只愿长相守 提交于 2019-11-26 08:19:30
问题 This question already has answers here : Quaternion rotation without Euler angles (3 answers) Closed 10 months ago . So I\'m writing a program where objects move around spacesim-style, in order to learn how to move things smoothly through 3D space. After messing around with Euler angles a bit, it seems they aren\'t really appropriate for free-form 3D movement in arbitrary directions, so I decided to move on to what seems to be best for the job - quaternions. I intend for the object to rotate