Skip to content

ColliderPartConfig

Defined in: physics/src/types.ts:207

Geometry and body-local placement for one collider part.

optional offset?: object

Defined in: physics/src/types.ts:211

Offset from body center in pixels.

x: number

y: number


optional rotation?: number

Defined in: physics/src/types.ts:216

Rotation relative to the body in radians, about the collider’s offset point. For axis: "x" capsules it adds on top of the 90° axis rotation.


shape: ColliderShape

Defined in: physics/src/types.ts:209

Shape of the collider.