Page 1 of 1

Teleport EntityMover

Posted: Sat Jul 13, 2013 9:40 pm
by Garold
I use an entitymover to attach a shield to an enemy. After the enemy dies, I teleport the character off to Limbo, when it respawns I teleport the enemy character near to the player. The problem is the entitymover for the Shield, it's causing problems, presumably the shield is rushing across the world to the new location based on the targetposition. Can I teleport the entity mover instead of using target position.

Just read that back and it sounds unclear, but I can explain more if you don't get me.

Thanks! :)

Re: Teleport EntityMover

Posted: Sat Jul 13, 2013 9:43 pm
by Norbo
The EntityMovers operate on velocity. If you want to make the entity truly teleport, then just set the Position/Orientation properties directly.

Re: Teleport EntityMover

Posted: Sat Jul 13, 2013 10:08 pm
by Garold
I can't even remember why I coded a mover and a rotator for the shield!

I have removed them and now directly set the worldtransform of the shield shape to the animation bone's transform. Now it's a rock steady 60 fps on respawn. I just tested it and everything is fine; the shield still protects the enemy.

Well that's good news, 30 less movers and 30 less rotators :)

Thanks Norbo, as always you are the man.