Ok I keep getting: Crash in: NewtonSetTyreSteerParam. Not sure what I am doing wrong, but this is how I am trying to do it.

dllfunction NewtonSetTyreSteerParam (vehicleConst, tyreIndex, paramtricAngle);

Ok, 3 parameters, first I am creating 2 local variables in my ai car action like:
var FLTire;
var FRTire;


I use these to then get the vehicleConst parameter by doing this after my var defines:
FLTire = NewtonGetBody(p1FL_W);
FRTire = NewtonGetBody(p1FR_W);


I think this may be causing the issue, because a breakpoint before this tells me that FLTire & FRTire both = 0.

Ok, next parameter, in my left and right front tire actions, I have a call to: NewtonVehicleAddTyre(vehicleConst, my);, well it returns the tire index which is our next parameter to pass, so I set it like this:
p1FLTireIndex = NewtonVehicleAddTyre(vehicleConst, my);


A breakpoint before this gives me an index number for each tire.

Last parameter, paramtricAngle, I simply pass a value to set my new steering angle to.

So any clues anyone? I am thinking it's because I am not using the correct newton function to get the vehicle constraint for the tires, but I don't know what else to call to get the constraint for the tires.

Thanks

-raiden


"It doesn't matter if we win or lose, it's how we make the game."
--------------------
Links: 3DGS for Dummies