Certain player setting
by Steve D · in Torque Game Engine · 04/14/2008 (8:37 pm) · 3 replies
I seem to remember there was a setting for a player object that told it to either accelerate slowly to full speed when moving from point A to B or just start out full speed. Did I imagine this or does that setting exist? I can't find it now!
#2
Anyone have any ideas or suggestions? I could have sworn there was a switch that controlled this behavior but maybe I am mistaken.
04/15/2008 (11:19 am)
I tried different settings with the run force with no noticable difference. My problem is when I move the bot following a path, the nodes are somewhat close together, about 2 world units apart, so he doesn't really build up speed because as soon as he gets close to 1 node he is given the destination of the next node in the chain. I would love to have him move the same speed regardless.Anyone have any ideas or suggestions? I could have sworn there was a switch that controlled this behavior but maybe I am mistaken.
#3
Hope this helps
- Jon
02/23/2010 (9:11 pm)
In setMoveDestination(), there are actually 2 parameters. The first is a position, and the second makes the player slow down as he reaches the destination (this parameter defaults to true). To make this stop, try something like:aiplayer.setMoveDestination("0 0 0", false);Hope this helps
- Jon
Torque 3D Owner eedok - Cody Hollis-Perdue