godotengine / godot-demo-projects

Demonstration and Template Projects
https://godotengine.org
MIT License
5.99k stars 1.65k forks source link

Truck Town Semi-Truck physics wonky when using Godot Jolt physics engine #1101

Closed BinaryWarlock closed 2 months ago

BinaryWarlock commented 3 months ago

Which demo project is affected: 3d/truck_town

OS/device including version: Linux

Issue description: When enabling the Godot Jolt addon, the semi-truck vehicle is essentially unplayable: the trailer is moved upwards off the ground at the hinge, and the truck is moved downwards off of its wheels. Might be an issue with the joint.

Works fine with default Godot Physics.

Screenshots of issue:

Calinou commented 3 months ago

cc @mihe

I'm not sure if this is a Jolt issue, a godot-jolt issue or an issue with how joints are configured in the demo (maybe it was incorrect all along).

mihe commented 3 months ago

Yeah, I've seen this one.

The setup in that demo is odd. It relies on ConeTwistJoint3D supporting multiple revolutions, which is not something Jolt supports, and something I haven't bothered to mention in the list of differences with Godot Physics.

I can make a PR to switch it over to a 6DOF joint instead, which I would say is the more intuitive choice for that particular setup.

Calinou commented 3 months ago

I can make a PR to switch it over to a 6DOF joint instead, which I would say is the more intuitive choice for that particular setup.

Yes, please do 🙂

mihe commented 3 months ago

@Calinou See #1102.