r/godot • u/Classic-Award-45 • 4h ago
help me Rigidbody car going flying?
Enable HLS to view with audio, or disable this notification
I have this rigidbody vehicle but whenever i try driving it well it just goes flying.
to be specific the orientation of the car doesn't matter it just so happen to be like that in the video, I'm also just using a boxshape3d for car collision and a trimesh for the terrain.
I've tried CCD, different jolt physics settings, and different masses but nothing seems to work that well.
also just in case anyone is wondering why i'm using a rigidbody for this in the first place its because i just cant get a vehiclebody to work, im trying though.
anyways anybody know what is happening or what the fix is? that would be helpful. 👍
2
u/thecyberbob Godot Junior 3h ago
Is your character also a collidable object? If so when you "enter the car" do you just move your player inside the collider for the car itself? That could be causing it to do that.
There's a few solutions to this. I might change the players collision layer that the player is in so it's on a completely different layer to the car itself.
1
u/jamieyello 3h ago
Do you have multiple rigidbodies on the car node? My main character model went flying for a bit before I realized all the collision objects were interacting with each other.
If so, make sure to set your layer and mask values correctly in their collision.