Camera Rotation Algorithm
问题 More a maths question then a programming one, but I need to code camera rotation and I have no idea how. The maths are a bit to abstract for me to do out of the blue. The camera's rotation is done with quaternions, all I really want is a sample to study or just an article about the subject but I can't find anything. 回答1: here is something i wrote in opengl. the basic algorithm should be the same in any language. the things you need are: the up vector of unit length (where up is defined if you