Game Development Community

Any way to move the player's head, not his whole body?

by Mike Stoddart · in Torque Game Engine · 09/07/2002 (8:47 am) · 1 replies

I want to modify things a little when the player is mounted to a vehicle as a passenger. Ideally, I'd like to be able to have the player look around (only so far as his neck will allow) in first person mode.

Does anyone know how to change the controls to move his head, and not his body?

I've just realised that this is probably linked to animation threads, so I'll do some searches on those first.

Thanks

#1
09/07/2002 (9:42 pm)
Check the updateMove member function in player.cc . I'm almost 100% sure the head's rotation is there. If not, see where the mHead or whatever is actually APPLIED. updateMove might just merely set the vector, not use it.

I was thinking of doing target locking with this being part of it, so I might look at this a little bit more.