RectColliderConfig
Defined in: tilemap/src/types.ts:128
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.
Properties
Section titled “Properties”height
Section titled “height”height:
number
Defined in: tilemap/src/types.ts:133
rotation?
Section titled “rotation?”
optionalrotation?:number
Defined in: tilemap/src/types.ts:135
Rotation in radians about the (x, y) pivot. Absent when 0.
type:
"rect"
Defined in: tilemap/src/types.ts:129
width:
number
Defined in: tilemap/src/types.ts:132
x:
number
Defined in: tilemap/src/types.ts:130
y:
number
Defined in: tilemap/src/types.ts:131