SpringJointConfig
Defined in: physics/src/types.ts:87
Elastic connection that holds a rest length in pixels.
Extends
Section titled “Extends”Properties
Section titled “Properties”anchorA?
Section titled “anchorA?”
optionalanchorA?:Vec2Like
Defined in: physics/src/types.ts:79
Attachment point on body A in local pixels. Default: body origin.
Inherited from
Section titled “Inherited from”anchorB?
Section titled “anchorB?”
optionalanchorB?:Vec2Like
Defined in: physics/src/types.ts:81
Attachment point on body B in local pixels. Default: body origin.
Inherited from
Section titled “Inherited from”collide?
Section titled “collide?”
optionalcollide?:boolean
Defined in: physics/src/types.ts:83
Whether the connected bodies collide. Default: false for fixed joints, true otherwise.
Inherited from
Section titled “Inherited from”damping
Section titled “damping”damping:
number
Defined in: physics/src/types.ts:93
Non-negative damping along the spring axis, in mass/s.
restLength
Section titled “restLength”restLength:
number
Defined in: physics/src/types.ts:89
stiffness
Section titled “stiffness”stiffness:
number
Defined in: physics/src/types.ts:91
Non-negative spring stiffness in mass/s².
type:
"spring"
Defined in: physics/src/types.ts:88
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.