Render and ProcessTick not called by the same player instance?
by Josh Albrecht · in Torque Game Engine · 09/30/2001 (10:57 am) · 1 replies
Here is my problem:
I need to transform something based on the location of a bone. So I use getNodeTransform to get the transformation matrix. I multiply that matrix by the getRenderTransform one, then I multiply my point by it, and my point is in the right spot.
HOWEVER, I do this twice. Once in Player::Render and once in Player::ProcessTick. For some reason the node transform changes drastically between then, even though the player isnt moving!! (Well, he is breathing, but that isnt much motion). THis causes my point to appear a small distance off of where it is in the processtick function, and is very annoying. How do I fix this!?
I need to transform something based on the location of a bone. So I use getNodeTransform to get the transformation matrix. I multiply that matrix by the getRenderTransform one, then I multiply my point by it, and my point is in the right spot.
HOWEVER, I do this twice. Once in Player::Render and once in Player::ProcessTick. For some reason the node transform changes drastically between then, even though the player isnt moving!! (Well, he is breathing, but that isnt much motion). THis causes my point to appear a small distance off of where it is in the processtick function, and is very annoying. How do I fix this!?
Torque Owner Josh Albrecht