question about migration from 1.53 to 2.0 sdk

A place to discuss everything related to Newton Dynamics.

Moderators: Sascha Willems, walaber

question about migration from 1.53 to 2.0 sdk

Postby chinanzio » Sun Sep 28, 2008 10:44 am

hi people :D , i am upgrading my code from 1.53 sdk version to 2.0, the question is about how to deal with cars ...
particulary how to set torque and steer angle to the tires

In the 1.53 sdk version i had got: (basicaly)

create a VehicleJoint
NewtonConstraintCreateVehicle(...)
then set a tire callback
NewtonVehicleSetTireCallback( vehicleJoint, tireCallbackFunc )
then add tires
NewtonVehicleAddTire(...)
then set torque and steer angle to the tires from tireCallbackFunc(...)

Now i have got a class which derives from CustomRayCastCar , it works well but i don't know from where i have to call SetTireTorque(...) and SetTireSteerAngle(...) .
Is there a equivalent way to set this properties like in 1.53 version ??
i have tried to do it from the mainLoop calling myVehicle.SetTireTorque(...) but it doesn't work (as i was thinking)

( is it understandable ? , if not please tell me , i will try to do it more understandable since i write from spain and it is so difficult to me to write in english :oops: )

thanks and regards !! :mrgreen: :mrgreen:
while(true) Pensar();
User avatar
chinanzio
 
Posts: 6
Joined: Thu Apr 26, 2007 5:54 am
Location: Barcelona

Re: question about migration from 1.53 to 2.0 sdk

Postby chinanzio » Sun Sep 28, 2008 8:02 pm

ok , i have solved my problem with CreateCustomMultiBodyVehicle() , sorry
while(true) Pensar();
User avatar
chinanzio
 
Posts: 6
Joined: Thu Apr 26, 2007 5:54 am
Location: Barcelona


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 21 guests