godotengine / godot

Godot Engine – Multi-platform 2D and 3D game engine
https://godotengine.org
MIT License
91.18k stars 21.2k forks source link

Rotated VehicleWheel spins in the wrong direction #47650

Open Zylann opened 3 years ago

Zylann commented 3 years ago

Godot version: Godot 3.2.3

OS/device including version: Windows 10 64 bits

Issue description: I started experimenting with VehicleBody and VehicleWheel, and quickly noticed the axis convention for "forward" on the wheels is +Z, which is against the convention Godot uses (-Z) for other things such as the camera and look_at. So I decided to flip wheels by rotating them by 180 degrees. The vehicle properly moves in the opposite direction, and steers in the same relative direction. However MeshInstances I added as child of the wheels rotate backward now, which is inconsistent with the physical result.

Steps to reproduce: Create a VehicleBody with 4 wheels, and set wheel Y rotations to 180 degrees.

Minimal reproduction project: VehicleWheels.zip

KRC2000 commented 11 months ago

Encountering same issue

timbeaudet commented 7 months ago

Just chiming in... got it happening here in 4.2.1

Deltt commented 1 month ago

Is there a known workaround for this by any chance?