This Godot plugin automatically generates physics bodies and collision shapes during the import of 3D scenes from GLB/GLTF files, with potential support for more formats in the future.
- Copy the
physics_collision_import_generatorfolder to your project'saddons/directory - Go to Project Settings → Plugins
- Enable the "Physics Collision Import Generator" plugin
- Import GLB or GLTF files into your project
- Open the "Collision Import Generator" dock panel (near the FileSystem dock)
- Select one or more files from the list
- Choose a physics shape type from the dropdown
- Click "Apply Physics" to add physics, or "Remove Physics" to remove it
- Files with physics applied are shown in green
- Use the search filter to find specific files
- Automatically creates StaticBody3D nodes with CollisionShape3D for all MeshInstance3D nodes
- Multiple physics shape types supported
- Preserves existing scene structure
- Uses Godot's import script system to automatically process scenes during import
- Trimesh: Exact mesh shape (best for static geometry)
- Convex: Convex hull approximation (good performance/accuracy balance)
- Box: Simple box shape based on mesh bounds
- Sphere: Simple sphere shape based on mesh bounds
- Capsule: Simple capsule shape based on mesh bounds
- Physics bodies are created as StaticBody3D by default
- Existing StaticBody3D nodes are reused when possible
- The plugin sets the Import Script Path in the file's
.importconfiguration to automatically process scenes during import