Repository navigation
API Interface ColliderDesc
Defined in: src/plugins/physics/runtime/backend.ts:174
D extends DimensionTypes
readonly friction: number;Defined in: src/plugins/physics/runtime/backend.ts:181
readonly groups: number;Defined in: src/plugins/physics/runtime/backend.ts:184
Collision groups: layer membership in the high 16 bits, the layers it meets in the low 16 (physics/layers.ts).
readonly oneWay?:
| {
base: number;
top: number;
up: PhysicsVec2;
}
| null;Defined in: src/plugins/physics/runtime/backend.ts:190
2D, capability oneWayPlatforms (ADR 0105, 0439): collide only with bodies coming down onto it from above top along
up (base: its own height along up when made). Rigid bodies (through contacts) and character controllers
(through their moves, ground snap and casts) both honour it, and dropThrough lets a body through.
readonly parent: BackendBody<D> | null;Defined in: src/plugins/physics/runtime/backend.ts:179
The body carrying it (its mass comes from the body's settings, not the shape), or null for a static collider.
readonly pose: Pose<D>;Defined in: src/plugins/physics/runtime/backend.ts:177
Relative to parent, or in world space without one.
readonly restitution: number;Defined in: src/plugins/physics/runtime/backend.ts:182
readonly sensor: boolean;Defined in: src/plugins/physics/runtime/backend.ts:180
readonly shape: D["shape"];Defined in: src/plugins/physics/runtime/backend.ts:175
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