0 votes

Hello!

When I try to import a rigid body from Blender I end up with a collision shape of just a Box Shape. I use -rigid flag in Blender. I've also tried flags like -col and -colonly but they create a Static Body.

How to import both mesh and collision shape for Rigid Body?

in Engine by (81 points)
edited by

1 Answer

+1 vote
Best answer

If you want a collision mesh that matches exactly your rigid body, you can do this in Godot using "create Trimesh Static body and Convex static body." as described here

Good luck :-)

by (851 points)
selected by

Thank you!

I've exported my mesh without any flags then created a trimesh static body, created rigid body and reparented my collision to that rigid body and deleted a static body created by trimesh option. But this method creates a copy of a mesh and a Rigid Body doesn't move or falls through the ground. Am I doing something wrong here?

Ok, convex shape solved my problem.

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 Frequently asked questions and 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.