Ok, never mind, find the solution...
I cancel the player controls and all the forces applied to the Newton vehicle.
Then I applied :
function teleport_me()
{
NewtonVehicle.carenginetorque=0;
While(NewtonVehicle.CarSpeed>0.001)
{
Wait(1);
}
reset_lock=1;
NewtonVehicle.x = 3000;
NewtonVehicle.y = 2412;
NewtonVehicle.z = 100;
var carbody;
dll_handle = newtonHandle;
carBody = NewtonGetBody (NewtonVehicle);
NewtonBodySetTransform (carbody);
reset_lock=0;
}
And it worked fine.
To use it, all you have to do is substitute NewtonVehicle in my code for the name of your Newton vehicle entity, and set your coordinates.
Last edited by Carloos; 11/18/06 03:02.