Game Development Community

Player Eye Vector?

by Dylan Sale · in Torque Game Engine · 02/12/2003 (6:14 am) · 2 replies

How do I set the pitch of the players first person view? I need this for lock on code. I get the target position and find the angle from the current position of the player, but I cant seem to make the player look up (or down) at the target.

I tried setting mHead.x to the pitch value... but that didnt work.

Any ideas?

Thanks to those who can help.

#1
02/12/2003 (9:06 am)
I have a little camera recoil thing for weapons, and I made it work by offsetting move->pitch and move->yaw, in the updateMove function.
#2
02/13/2003 (4:02 am)
yeah.. the thing is that the move->pitch increases the pitch by that amount, i need to specify the EXACT pitch...