Skip to content
Discussion options

You must be logged in to vote

You can control the wheel orientation, suspension direction and steering axis separately, so you have to change:

wheelS.mWheelUp = new Jolt.Vec3(0, 0, 1);
wheelS.mWheelForward = new Jolt.Vec3(1, 0, 0);

to:

wheelS.mWheelUp = new Jolt.Vec3(0, 0, 1);
wheelS.mWheelForward = new Jolt.Vec3(1, 0, 0);
wheelS.mSuspensionDirection = new Jolt.Vec3(0, 0, -1);
wheelS.mSteeringAxis = new Jolt.Vec3(0, 0, 1);

and then it works as intended. This can be used to give your wheels camber or toe or to give the suspension a caster angle.

So the whole sample becomes this:

vehicle_wheeled.zip

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@D8H
Comment options

Answer selected by D8H
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants