Skip to content

API Interface ColliderDesc

github-actions[bot] edited this page Nov 30, 2026 · 3 revisions

Interface: ColliderDesc<D>

Defined in: src/plugins/physics/runtime/backend.ts:175

Type Parameters

D

D extends DimensionTypes

Properties

friction

readonly friction: number;

Defined in: src/plugins/physics/runtime/backend.ts:182


groups

readonly groups: number;

Defined in: src/plugins/physics/runtime/backend.ts:185

Collision groups: layer membership in the high 16 bits, the layers it meets in the low 16 (physics/layers.ts).


oneWay?

readonly oneWay?: 
  | {
  base: number;
  top: number;
  up: PhysicsVec2;
}
  | null;

Defined in: src/plugins/physics/runtime/backend.ts:191

2D, capability oneWayPlatforms (ADR 0105, 0439): collide only with bodies coming down onto it from above top along up (base: its own height along up when made). Rigid bodies (through contacts) and character controllers (through their moves, ground snap and casts) both honour it, and dropThrough lets a body through.


parent

readonly parent: BackendBody<D> | null;

Defined in: src/plugins/physics/runtime/backend.ts:180

The body carrying it (its mass comes from the body's settings, not the shape), or null for a static collider.


pose

readonly pose: Pose<D>;

Defined in: src/plugins/physics/runtime/backend.ts:178

Relative to parent, or in world space without one.


restitution

readonly restitution: number;

Defined in: src/plugins/physics/runtime/backend.ts:183


sensor

readonly sensor: boolean;

Defined in: src/plugins/physics/runtime/backend.ts:181


shape

readonly shape: D["shape"];

Defined in: src/plugins/physics/runtime/backend.ts:176

Clone this wiki locally