Updating a node position on the server
by Manoel Neto · in Torque Game Engine · 04/20/2006 (7:50 am) · 0 replies
I'm almost getting crazy with this.
We have a player model and a weapon model. The player has two animations for each weapon: one for holding it still, and another one for aiming/firing, these animations are set using setArmThread.
I'm using getSlotTransform() and getForwardVector() to retrieve the position and orientation for the projectiles, since getMuzzlePoint() and getMuzzleVector() are returning fubar'ed values.
The problem is: the projectiles's origin point is not changing after switching to the aim animation, and they are being fired from the weapon's position in the previous animation. I tried calling animate on the server's processTick , but it won't do any difference: getSlotTransform() won't update along the animation, no matter what.
I noticed some *very* hardcoded bone names in the code, used in the updateAnimationTree. Our model doesn't use the same hierarchy as the orc (it's all joint0, joint1, etc...), so maybe is that the problem? Anyway, it's driving me nuts why the mount0 node won't reposition on the server, but seems to update fine on the client.
Did anyone have a similar problem?
We have a player model and a weapon model. The player has two animations for each weapon: one for holding it still, and another one for aiming/firing, these animations are set using setArmThread.
I'm using getSlotTransform() and getForwardVector() to retrieve the position and orientation for the projectiles, since getMuzzlePoint() and getMuzzleVector() are returning fubar'ed values.
The problem is: the projectiles's origin point is not changing after switching to the aim animation, and they are being fired from the weapon's position in the previous animation. I tried calling animate on the server's processTick , but it won't do any difference: getSlotTransform() won't update along the animation, no matter what.
I noticed some *very* hardcoded bone names in the code, used in the updateAnimationTree. Our model doesn't use the same hierarchy as the orc (it's all joint0, joint1, etc...), so maybe is that the problem? Anyway, it's driving me nuts why the mount0 node won't reposition on the server, but seems to update fine on the client.
Did anyone have a similar problem?
About the author