-
GDevelop uses Z+ as up to be better integrated with the 2D engine that uses X and Y. I tried to modify the Wheeled Vehicle Controller Demo to set Z+ as up, but I couldn't make it work. Do you see any issue with the way I set up the engine? Untouched demo (Y+ is up)Branch with logs: The logged distance on Y between the car center and the wheel contact with the ground is a bit more than 0.8 as expected:
Modified demo (Z+ is up)Branch with changes: Changes:
Result:
The logged distance on Z between the car center and the wheel contacts is about 0.2 which is probably the
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
I took a quick look and don't immediately see what's wrong. I know that it is possible to have a car with Z-up because I've done it. I need a bit of time to debug this. |
Beta Was this translation helpful? Give feedback.
-
You can control the wheel orientation, suspension direction and steering axis separately, so you have to change:
to:
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: |
Beta Was this translation helpful? Give feedback.
You can control the wheel orientation, suspension direction and steering axis separately, so you have to change:
to:
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