Quaternion to Vector3f conversion

Vector3f worldOffset = gun.getWorldRotation().mult(localMuzzleOffset);

Edit: and perhaps useful, the 3D math tutorial: Keynote

3 Likes