Game Development Community

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!?

#1
09/30/2001 (12:34 pm)
Ahh, someone explained it to me in the IRC channel. The ghosts of the players call the render function. So it isnt really the same player calling both functions (since I made sure ghosts couldnt call the first one)