Importing blender models with collider to godot

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Ogeeice

How to create a blender model with collider and export to godot

:bust_in_silhouette: Reply From: BraindeadBZH

Not sure if this answer your question, but the way I add collision from my blender models is:

  1. Create a RigidBody, or StaticBody
  2. Add a MeshInstance child to the body
  3. I set my exported model as the Mesh of the MeshInstance
  4. Then using the Mesh menu from the 3D viewport I use Create Trimesh Collision Sibling

So it creates a collider completely the same as the mesh

Ogeeice | 2019-07-09 20:16

Yes, it will create the exact copy

BraindeadBZH | 2019-07-09 21:57

:bust_in_silhouette: Reply From: admin

You need to name your object with “-col” in Blender (example : “Cube-col”).

https://docs.godotengine.org/en/latest/tutorials/assets_pipeline/importing_scenes.html#import-hints

:bust_in_silhouette: Reply From: SF123

What you can do is go to Blender->Export->OBJ, and then import it in-game and select the mesh and click Mesh->Create Simplified Convex Collision Shape.

There are also a few other options, but that is what I tend to do when I’m importing models to be used for the player.

If you are just importing like a wall or something, I’d choose create Tri-Mesh Static Body.

a year late lol but this helped a lot! worked perfectly.

theoddpaw | 2023-07-09 01:41