Skip to content

PrismaticJointConfig

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

Slider with optional limits in pixels along its axis.

optional anchorA?: Vec2Like

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

Attachment point on body A in local pixels. Default: body origin.

JointConfigBase.anchorA


optional anchorB?: Vec2Like

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

Attachment point on body B in local pixels. Default: body origin.

JointConfigBase.anchorB


axis: Vec2Like

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

Non-zero axis local to body A, normalized internally.


optional collide?: boolean

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

Whether the connected bodies collide. Default: false for fixed joints, true otherwise.

JointConfigBase.collide


optional limits?: JointLimits

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


optional motor?: JointMotorConfig

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


type: "prismatic"

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

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.