Additional note:
the pitch control (value of angles_x) rotates the model around its engine "seen" 0 value for the y axis. The same applies to the yaw control (angles_y) rotation around z axis 0 value.
You can see this in the video - pitch rotates around a point about 24 units up from the floor.
Thus if you have a model with a (0, 0, 0) origin at its feet, the pitch rotation will happen from the feet...or if the origin is not centered the yaw rotation will appear strange - rotating from a corner of the model.
Quake-c tutorial on programming player controls - Be impulsive: Moddb.com
Additional note:
the pitch control (value of angles_x) rotates the model around its engine "seen" 0 value for the y axis. The same applies to the yaw control (angles_y) rotation around z axis 0 value.
You can see this in the video - pitch rotates around a point about 24 units up from the floor.
Thus if you have a model with a (0, 0, 0) origin at its feet, the pitch rotation will happen from the feet...or if the origin is not centered the yaw rotation will appear strange - rotating from a corner of the model.