Repository navigation
API Class Plane
Defined in: src/engine/core/geometry.ts:31
An infinite plane (ADR 0073): the points p where normal . p + distance = 0, like Unity's
Plane. normal is kept normalized; distance is the signed distance from the origin to the
plane, measured against the normal (Plane.fromNormalAndPoint(up, [0, 2, 0]) has distance -2).
new Plane(normal?, distance?): Plane;Defined in: src/engine/core/geometry.ts:35
Vec3Input = ...
number = 0
Plane
distance: number;Defined in: src/engine/core/geometry.ts:33
readonly normal: Vector3;Defined in: src/engine/core/geometry.ts:32
distanceToPoint(point): number;Defined in: src/engine/core/geometry.ts:46
Signed distance from the plane to point: positive on the side the normal faces.
number
raycast(ray): number | null;Defined in: src/engine/core/geometry.ts:51
The distance along ray to the plane, or null if the ray is parallel to it or points away.
number | null
static fromNormalAndPoint(normal, point): Plane;Defined in: src/engine/core/geometry.ts:40
Plane
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