http://www.newtondynamics.com/downloads/NewtonWin-2.03.rar
It fixes the Bug with the RayCast car that only allowed set car oriented along the x local axis, now the chassis matrix that define the car orientation works as it should.
With this feature the user will not have a physically rotate the car geometry, setting the proper chassis matrix will do the trick.
- Code: Select all
For example to create a car joint with a car moving along the x axis you can do this
1 0 0 0 // car direction of motion in local space
0 1 0 0 // up vector In local space
0 0 1 0 // tire rotation axis in local space
0 0 0 1 // always zero vector
// if your can geometry is oriented alone the z asis , then you set the chassis matrix to this
// Vet I think this is your situation
0 0 1 0 // car direction of motion in local space point alone teh z axis
0 1 0 0 // up vector In local space
-1 0 0 0 // tire rotation axis in local space poin alon the x axis
0 0 0 1 // always zero vector
Please try that and see if it is better.