ColliderPartConfig
Defined in: physics/src/types.ts:247
Geometry and body-local placement for one collider part.
Properties
Section titled “Properties”offset?
Section titled “offset?”
optionaloffset?:object
Defined in: physics/src/types.ts:251
Offset from body center in pixels.
x:
number
y:
number
rotation?
Section titled “rotation?”
optionalrotation?:number
Defined in: physics/src/types.ts:256
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:249
Shape of the collider.
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/physics.md.