Game Development Community

Pretty simple question about accelerating in TGB

by Josias Gibbs · in Torque Game Engine · 09/07/2008 (4:24 pm) · 1 replies

I know that TGB has a rotateTo() function, but I can't seem to find a function to accelerate toward a certain speed (ie: something like accelerateTowardSpeed(%acceleration, %targetSpeed) ) I'm assuming something simple like this must exist - I just can't seem to find it in the docs.

#1
09/07/2008 (5:39 pm)
I dont' think that exists actually, but you could apply a small impulse (or increase the linear velocity) in onUpdate and set a maxLinearVelocity