Summary
Type Definitions
- CameraMoveStyle
- CharacterState
- Date
- Euler
- GenericCallback()
- Mat3
- Mat4
- Object3D
- ParametricLine
- Quat
- RGB
- RGBA
- Sensor
- TSR
- Vec2
- Vec3
- Vec4
Detailed Description
Type Definitions
CameraMoveStyle
Camera movement style enum. One of MS_*.
Type:
- number
- Source:
- See:
CharacterState
Constant value matching character state (flying, walking etc).
Type:
- number
- Source:
Date
Euler
Euler vector representing rotation (in radians).
Using euler angles is discouraged, use quaternions instead.
Type:
- Float32Array
- Source:
GenericCallback()
Generic callback function with no parameters.
- Source:
Mat3
3x3 matrix.
The elements of matrix are placed in typed array in column-major order.
Can be created with module:mat3.create.
Type:
- Float32Array
- Source:
Mat4
4x4 matrix.
The elements of matrix are placed in typed array in column-major order.
Can be created with module:mat4.create.
Type:
- Float32Array
- Source:
Object3D
Object in 3D space.
You should always use the engine's API in order to manipulate your 3D object.
Never access it directly by it's properties.
Type:
- Object
- Source:
ParametricLine
Quat
Quaternion vector representing rotation.
Quaternion is a four-dimensional vector which has the following format:
[X, Y, Z, W]. Can be created with module:quat.create.
Type:
- Float32Array
- Source:
RGB
Typed three-dimensional vector representing color.
Each component must be in range 0-1.
Can be created with module:rgb.create.
Type:
- Float32Array
- Source:
RGBA
Typed four-dimensional vector representing color and alpha.
Each component must be in range 0-1.
Can be created with module:rgba.create.
Type:
- Float32Array
- Source:
Sensor
TSR
TSR vector representing 3D object's transformations (Translation, Scale, Rotation).
TSR is an eight-dimensional vector which has the following format:
[X, Y, Z, SCALE, QUAT_X, QUAT_Y, QUAT_Z, QUAT_W].
Can be created with module:tsr.create.
Type:
- Float32Array
- Source: