Skip to content

Add Convert to Empty operator for lightweight collision primitives #562

@by-tndy

Description

@by-tndy

Request

Add an operator that converts collider objects to Blender Empty objects using primitive display types (cube, sphere, etc.). Most game engines support empty-based collision primitives, which are simpler and cheaper to compute than mesh-based colliders.

Implementation

Added convert_to_empty.py in collider_conversion/ with a new operator that:

  • Converts selected collider mesh objects to Blender Empty objects.
  • Sets the empty display type to match the original collider shape (e.g. cube, sphere).
  • Preserves the collider's transform (location, rotation, scale).
  • Applies correct naming based on the active preset's naming convention.
  • Reports consistent output info in the info bar on completion.
  • Exposed in the properties panel alongside other conversion operators.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions