Skip to content

@modoki/engine / index / ColliderShape3D

Type Alias: ColliderShape3D

ColliderShape3D = "box" | "sphere" | "capsule" | "cylinder" | "cone" | "convex" | "trimesh"

Collider shape. Primitives (box/sphere/capsule/cylinder/cone) are analytic and dynamic-safe; capsule/cylinder/cone extend along their LOCAL +Y axis (Rapier convention). Mesh-derived shapes read the geometry of this entity's Renderable3D mesh (baked at the entity's Transform.scale, mesh-local frame):

  • convex — convex hull of the mesh (dynamic-safe; the shape a solid prop should use).
  • trimesh — the raw triangle mesh (exact, concave, but STATIC only — no interior, so a dynamic body gets no solid response; use for level/terrain geometry).

Built with Modoki.