Game Development Community

First person lean camera

by Andrew Edmonds · in Torque Game Engine Advanced · 02/04/2009 (7:31 am) · 2 replies

Hi all,

I've used what I learnt from TorqueMotion's walk code to implement lean left / lean right in TGEA 1.7.1. If I'm in 3rd person view, I can see the player lean to the left and right. However, In first person view the camera stays where it is.

Obviously I'd like the camera to lean with the head (position would be nice, rotation would be great). I've parented the eye node to the biped head in 3ds and the node moves with the lean animation both in 3ds and in ShowToolPro. In game, however, I see no change.

I'm not sure whether this is an art question or a code question - however, the code to get him to lean all seems to work so I'm leaning (pun not intended :o)) toward an art question...

Any thoughts?

Thanks as always.

About the author

Formed in 2005, EiKON Games is an indie games development project based in the UK working on the tactical first person shooter "Epoch: Incursion". See the Join Us or Contact Us pages at http://www.eikon-games.com/


#1
02/04/2009 (12:33 pm)
Have you tried the More Realistic First Person resource? That will make your camera follow every movement animation for your model. If you walk, the camera bobs up and down. If you lean to the side, then the camera moves with the animation.
#2
02/04/2009 (2:46 pm)
Hi Michael,

I'd planned to look at that again over the next couple of days actually. It was sitting there at the back of my mind :o)

I just wanted to see if I was missing something obvious first. I'll take a look at that resource tomorrow.

Thanks!