Mounting on a vehicle with animation
by Kevin Dahlhausen · in Torque Game Engine · 10/13/2008 (3:54 am) · 2 replies
Hello everyone. I could use some advice on the best way to approach this problem:
The goal is to have a first person view of the player rowing a boat. I'd like to at least see the arms coming forward on either side of the screen as the player rows. It would be even better if the eye node moved with the head.
I have been able to mount the animated player on a boat. The first person view does not show the arms when they are extended, nor does the eye node move. So the view looks like a camera mounted on a tripod on the boat with no player present.
I was thinking that the solution might be to combine the boat and player objects into one object, then make it an AI class. The animation would then be part of the boat shape. The hope is that this would allow the eye node animation.
Second thought was to get the transform of the player's eye node and set the camera's transform to it for each frame.
Does anyone have suggestions on a good way accomplish this?
Thanks,
K
The goal is to have a first person view of the player rowing a boat. I'd like to at least see the arms coming forward on either side of the screen as the player rows. It would be even better if the eye node moved with the head.
I have been able to mount the animated player on a boat. The first person view does not show the arms when they are extended, nor does the eye node move. So the view looks like a camera mounted on a tripod on the boat with no player present.
I was thinking that the solution might be to combine the boat and player objects into one object, then make it an AI class. The animation would then be part of the boat shape. The hope is that this would allow the eye node animation.
Second thought was to get the transform of the player's eye node and set the camera's transform to it for each frame.
Does anyone have suggestions on a good way accomplish this?
Thanks,
K
#2
For anyone following this: renderFirstPerson is set at around line 521 of server/scripts/player.cs
There is no head movement, which is described in the resource silentMike posted. I haven't had a chance to try that resource yet.
10/13/2008 (5:06 am)
Thank you Mike. That helped - I can see the arms now.For anyone following this: renderFirstPerson is set at around line 521 of server/scripts/player.cs
There is no head movement, which is described in the resource silentMike posted. I haven't had a chance to try that resource yet.
Associate Michael Hall
Distracted...
There is a resource for what you want to for the eye node. But it can be more disorienting than you probably think it would, especially depending on just how much movenment is caused by the animation.
More Realistic First Person