Game Development Community

Get Vehicle Velocity

by Kerm Martian · in Torque Game Engine · 03/02/2006 (9:15 am) · 4 replies

I'm working on try to make multicar trains, and I have everything set up, including vehicles and a scripting framework, except for a single feature/command: I need to get the velocity of a vehicle. Either a vector or a scalar would work. Does anyone know how to do this in TorqueScript?

About the author


#1
03/02/2006 (10:08 am)
%vehcile.getVelocity();
#2
03/02/2006 (10:16 am)
* %vehicle.getVelocity();
#3
03/02/2006 (11:51 am)
Great, thanks, didn't know it was that easy. :)
#4
03/03/2006 (7:06 am)
Alrighty, so I've found that has a few implicit problems. New question: how do you set and get the actual wheel velocities for driving wheels? eg the rotational velocity.