How would one implement an FPS camera?

前端 未结 4 863
长发绾君心
长发绾君心 2021-02-13 20:55

So I\'m currently working on some FPS game programming in OpenGL (JOGL, more specifically) just for fun and I wanted to know what would be the recommended way to create an FPS-l

4条回答
  •  不知归路
    2021-02-13 21:43

    You could use Quaternions for your camera rotation. Although I have not tried it myself, they are useful for avoiding gimbal lock.

提交回复
热议问题