Repository navigation
API Interface JointSettings
Defined in: src/plugins/physics/runtime/backend.ts:82
Limits, motor and spring on a live joint; radians for angles. Null parts are off.
readonly cone?:
| {
swing: readonly [number, number];
twist: readonly [number, number];
}
| null;Defined in: src/plugins/physics/runtime/backend.ts:92
A spherical joint's twist range (around its x axis) and swing half-angles around its y and z axes, in its frame. The cone is elliptical; a backend without an exact elliptical limit approximates it (ADR 0375).
readonly drive?:
| {
damping: number;
maxForce: number;
rotation: PhysicsQuat;
stiffness: number;
}
| null;Defined in: src/plugins/physics/runtime/backend.ts:98
A spherical joint's drive: turn towards rotation (the joint body's rotation relative to the connected body,
away from its pose when the joint was made, in the joint frame) with stiffness torque per radian and
damping torque per radian per second, at most maxForce torque. Null is off.
readonly limits: readonly [number, number] | null;Defined in: src/plugins/physics/runtime/backend.ts:83
readonly motor:
| {
maxForce: number;
targetVelocity: number;
}
| null;Defined in: src/plugins/physics/runtime/backend.ts:85
Drive towards targetVelocity with at most maxForce.
readonly spring:
| {
damping: number;
stiffness: number;
target: number;
}
| null;Defined in: src/plugins/physics/runtime/backend.ts:87
Pull towards target with stiffness and damping. Ignored while a motor is on.
This wiki is generated from docs/wiki/ and the myco module's source on every push to master. Change pages there in a pull request: edits made here are not kept.
Basics
Gameplay
Rendering
Audio
- Playing sound
- Why is there no sound?
- Playlists
- Interactive music
- Sound generators
- Spatial audio
- Audio mixer
- Live mixing
- Loudness
- Audio profiler
- Audio takes
Reference