Physics · interface

Collider

A world obstacle: its bounds, and optionally the volume it really is.

Explained in Your first game, Rigid bodies.

interface Collider extends Aabb
import type { Collider } from '@driftengine/physics';

Properties

NameTypeDescription
shapeoptionalConvexShape | undefinedPoints in world space — static shapes are baked, not transformed per query.