ColliderPartConfig
Defined in: physics/src/types.ts:207
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:211
Offset from body center in pixels.
x:
number
y:
number
rotation?
Section titled “rotation?”
optionalrotation?: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.