Skip to content

RectColliderConfig

Defined in: tilemap/src/types.ts:132

All shape configs store x/y as the top-left corner of the object’s bounding box (matching Tiled’s coordinate convention). Rect and capsule configs may carry a rotation about that corner; vertex-based shapes and circles have rotation already applied at extraction. toPhysicsColliders converts to the center-origin offsets that Rapier expects.

height: number

Defined in: tilemap/src/types.ts:137


optional rotation?: number

Defined in: tilemap/src/types.ts:139

Rotation in radians about the (x, y) pivot. Absent when 0.


type: "rect"

Defined in: tilemap/src/types.ts:133


width: number

Defined in: tilemap/src/types.ts:136


x: number

Defined in: tilemap/src/types.ts:134


y: number

Defined in: tilemap/src/types.ts:135

Coding agents: fetch https://yage.dev/llms.txt first and prefer the Markdown references it links over these HTML pages. This page's Markdown counterpart is /llms/packages/tilemap.md.