Godot Engine

Godot Engine

How to make a well-balanced offroad vehicle with the vehiclebody3d?
I'm making a game with vehicles but the physics aren't close to how I'd want them. I want them somewhat like the warthog from Halo but currently the thing slips and rolls so much. What would I need to change to make it more nice off-roading?
< >
Showing 1-2 of 2 comments
Make the VehicleBody3D larger on the Y scale, and match the top of the VehicleBody3D to the top of the vehicle's body model. As you can see in the built-in demo[godotengine.org], this places the center of gravity well below ground, making the vehicles much harder to tip over.

You'll also need to play around with the physics numbers (mass, acceleration, friction, etc) on both the VehicleBody3D and all of the Wheels to get something that feels "right".

if none of that is appealing, the alternative is to create your own raycast-based vehicle, as shown in tutorials like this one: https://www.youtube.com/watch?v=fe-8J7_WAq0
Armynator May 14 @ 12:48pm 
Don't use VehicleBody3D or VehicleWheel3D, as both have countless unfixed issues.
Create a custom vehicle setup with RigidBody3D, using joints and your own collision shapes for the wheels. Making vehicle wheels based on raycasts works as well, but is even more work to get right.
< >
Showing 1-2 of 2 comments
Per page: 1530 50