Quote:
entity* p_vehicle;
with p_vehicle pointing to the Newton car, you should declare a function like this:
function ResetMyPosition() { var car;
p_vehicle.roll = 0; p_vehicle.tilt = 0; p_vehicle.pan = 0;
car = NewtonGetBody (p_vehicle);
NewtonBodySetTransform(car); }
Next time SEE in the forum old topics! Copy this script at end of your main scripts! Sorry for my bad english!!!
|