API

Interface PhysicsAggregateOptions

Options for createPhysicsAggregate: mass, material (friction/restitution), and optional shape geometry overrides.

interface PhysicsAggregateOptions {
    center?: Vec3;
    extents?: Vec3;
    friction?: number;
    isTriggerShape?: boolean;
    mass: number;
    pointA?: Vec3;
    pointB?: Vec3;
    radius?: number;
    restitution?: number;
    rotation?: Quat;
    shape?: PhysicsShape;
    startAsleep?: boolean;
}
Index
center?: Vec3
extents?: Vec3
friction?: number
isTriggerShape?: boolean
mass: number
pointA?: Vec3
pointB?: Vec3
radius?: number
restitution?: number
rotation?: Quat
shape?: PhysicsShape

Optional pre-built shape. When provided, it is used directly and the primitive-shape build path is skipped. This lets callers supply mesh/convex-hull shapes (built via createPhysicsShape) without pulling the mesh-shape code into createPhysicsAggregate itself.

startAsleep?: boolean