• Register

Ph'nglui mglw'nafh Cthulhu R'lyeh wgah'nagl fhtagn.

  • View media
  • View media
  • View media
  • View media
  • View media
  • View media
Report RSS Pitch and Yaw
Post comment Comments
numbersix Author
numbersix - - 2,244 comments

Quake-c tutorial on programming player controls - Be impulsive: Moddb.com

Reply Good karma+1 vote
numbersix Author
numbersix - - 2,244 comments

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.

Reply Good karma+1 vote
Post a comment

Your comment will be anonymous unless you join the community. Or sign in with your social account:

Description

Mouse control of the player entity implemented by the engine as pitch and yaw - demonstration for the linked quake-c tutorial.