Quaternion Camera Orbiting around a Sphere
- by jessejuicer
Background: I'm trying to create a game where the camera is always rotating around a single sphere. I'm using the DirectX D3DX math functions in C++ on Windows.
The Problem: I cannot get both the camera position and orientation both working properly at the same time. Either one works but not both together.
Here's the code for my quaternion camera…