Skip to content

JointMotorConfig

Defined in: physics/src/types.ts:114

At least one target is required. All numbers must be finite.

optional damping?: number

Defined in: physics/src/types.ts:122

Non-negative damping. A velocity-only motor needs a positive value. Default: 0.


optional position?: number

Defined in: physics/src/types.ts:118

Target angle in radians or distance along a prismatic axis in pixels.


optional stiffness?: number

Defined in: physics/src/types.ts:120

Non-negative acceleration-based strength, passed to the solver without conversion. Default: 0.


optional velocity?: number

Defined in: physics/src/types.ts:116

Target speed in rad/s for revolute joints or px/s for prismatic joints.

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.