Search code examples
javamathlibgdxquaternions

LibGDX - Represent a Perspective Camera as a Quaternion


How would you represents the rotation of a LibGDX Perspective Camera as a Quaternion?


Solution

  • Quaternion rotation = camera.view.getRotation(new Quaternion());