Skip to content

API Interface BallDrive

github-actions[bot] edited this page Nov 24, 2026 · 1 revision

Interface: BallDrive

Defined in: src/engine/physics/types.ts:52

Drives a ball joint's body towards targetRotation (ADR 0375): the body's rotation relative to the connected body, as a turn away from the pose the joint was made in, in the joint's frame (x is the twist axis), a plain { x, y, z, w } quaternion. stiffness (torque per radian) and damping (torque per radian per second) shape the spring; maxForce is the most torque it may apply (0 turns the drive off in effect).

Properties

damping

damping: number;

Defined in: src/engine/physics/types.ts:55


maxForce

maxForce: number;

Defined in: src/engine/physics/types.ts:56


stiffness

stiffness: number;

Defined in: src/engine/physics/types.ts:54


targetRotation

targetRotation: object;

Defined in: src/engine/physics/types.ts:53

w

w: number;

x

x: number;

y

y: number;

z

z: number;

Clone this wiki locally