Repository navigation
API Class LocalToWorld
Defined in: src/engine/scene/LocalToWorld.ts:13
A node's local-to-world matrix and what it tells you (ADR 0163), after Unity ECS's LocalToWorld:
value (the matrix), position, rotation, and the world directions right (+X), up (+Y) and
forward (+Z, where cameras look; Unity's coordinates, ADR 0164). Read from transform.localToWorld, which takes a snapshot: it
doesn't follow later moves.
readonly value: Float64Array;Defined in: src/engine/scene/LocalToWorld.ts:15
The matrix, column-major (16 numbers; translation in 12..14).
get forward(): Vector3;Defined in: src/engine/scene/LocalToWorld.ts:40
The node's forward (+Z) in world space, unit length.
get position(): Vector3;Defined in: src/engine/scene/LocalToWorld.ts:24
World-space position (a new Vector3).
get right(): Vector3;Defined in: src/engine/scene/LocalToWorld.ts:36
The node's +X axis in world space, unit length.
get rotation(): Quaternion;Defined in: src/engine/scene/LocalToWorld.ts:30
World-space rotation, with scale taken out (a new Quaternion).
get up(): Vector3;Defined in: src/engine/scene/LocalToWorld.ts:38
The node's +Y axis in world space, unit length.
inverseTransformDirection(direction): Vector3;Defined in: src/engine/scene/LocalToWorld.ts:62
A world-space direction, in the node's local space.
inverseTransformPoint(point): Vector3;Defined in: src/engine/scene/LocalToWorld.ts:55
A world-space point, in the node's local space.
transformDirection(direction): Vector3;Defined in: src/engine/scene/LocalToWorld.ts:49
A direction in the node's local space, in world space (rotation and scale, no translation).
transformPoint(point): Vector3;Defined in: src/engine/scene/LocalToWorld.ts:43
A point in the node's local space, in world space.
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