0 votes

Hello,
could someone give me a short explanation how to add physics to a 3d model (I have a car imported as glFT)? I've been looking for tutorials on that and haven't found any, only those that explain it in general.
I was trying adding a rigidbody, bt it demands a collision shape. How can I get it from my 3d car model?

in Engine by (12 points)

1 Answer

+1 vote

Create your RigidBody.
Add your car mesh as a child of this node.
Having the mesh node selected you will see a button appear on top of the 3d viewport saying 'Mesh'.
Click it.
Select create Convex Collision Sibling.

Now your car can detect collisions so you can use physics with it.

by (1,051 points)

Hi ! Thanks for the answer. But when I try to translate(Vector3) the rigid body, physics doesn't apply.
Upd. Ok, ok. I got it, I can't move rigid bodies directly, only by applying a force.

You can also use integrate_forces().

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.