Skip to content

Issue with x axis flipped on vehicle #371

Answered by jrouwe
Pindrought asked this question in Q&A
Discussion options

You must be logged in to vote

SetDriverInput with inRight = 1 is supposed to steer to the right, so there's definitively something wrong.

How have you configured VehicleConstraintSettings::mUp and VehicleConstraintSettings::mForward? By default Z is forward and Y is up. Jolt uses a right handed coordinate system so X must be left. So that's why the left wheel has positive X and the right wheel negative X. If your X axis is flipped, you're probably using a left handed coordinate system which is also valid, but not the one Jolt is using.

Can you confirm which axis points in which direction in your engine?

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@Pindrought
Comment options

@jrouwe
Comment options

@Pindrought
Comment options

Answer selected by Pindrought
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