Game Development Community

YAW/PITCH Camera in vehicle??

by Warren · in Technical Issues · 02/01/2008 (10:25 am) · 0 replies

Hi guys,

Quick question, in combination with the Vehicle class, how would one make it so the yaw and pitch of the camera can be adjusted as the turret class modifcation suggests here: Turret/vehicle mouse control.

The turret moves just fine, but I need the player/vehicle camera to rotate to match the yaw/pitch etc of the turret, and i figure the best way is to have have the . noticed in the vehicle.cc file that yaw and pitch controls the direction of the tires, and that is not what i want. I tried implementing it from the player.cc/.h and due to an inevitable QuatF to Point3F conversion it didn't work. :(

About the author

Recent Threads