Problem getting eye transform
by Dean · in Torque Game Engine · 07/27/2007 (9:33 pm) · 2 replies
My problem is that I'm trying to get the current transform of the eye, but what it's returning doesn't account for the animation. It returns the position of the eye if the player wasnt being animated. I can't figure out how to get the "real" eye transform. I noticed that in other places such as the GuiShapeNameHud it finds the eye position properly, but I can't figure out how to do the same in player.cc or shapebase.cc
They had the same problem in this thread:
www.garagegames.com/mg/forums/result.thread.php?qt=24275
but never posted a fix that worked for me.
any ideas?
They had the same problem in this thread:
www.garagegames.com/mg/forums/result.thread.php?qt=24275
but never posted a fix that worked for me.
any ideas?
#2
getEyeTransform () does give you the correct eye transform, animations accounted for.
However, you won't get the interpolated transform which essentially is what you see in the renderer.
The regular transform is set at specific intervals while the render transform is set each frame and is interpolated between server updates. The latter will make changes between ticks look smooth (while in reality they're not).
So you need to use getRenderEyeTransform ();
08/13/2007 (5:26 pm)
You're missing out something important here.getEyeTransform () does give you the correct eye transform, animations accounted for.
However, you won't get the interpolated transform which essentially is what you see in the renderer.
The regular transform is set at specific intervals while the render transform is set each frame and is interpolated between server updates. The latter will make changes between ticks look smooth (while in reality they're not).
So you need to use getRenderEyeTransform ();
Torque 3D Owner Matthew Jessick