Maintains the coordinates and orientation of the listener.
- Source:
Methods
(static) export() → {Object}
Returns the inner state.
The inverse of import()
.
- Source:
Listens to Events:
Returns:
- Type
- Object
(static) getEuler() → {syngen.utility.euler}
Returns the orientation. Beware that this is less performant than using quaternions and can result in gimbal lock.
- Source:
Returns:
- Type
- syngen.utility.euler
(static) getQuaternion() → {syngen.utility.quaternion}
Returns the oriantation.
- Source:
Returns:
- Type
- syngen.utility.quaternion
(static) getVector() → {syngen.utility.vector3d}
Returns the coordinates.
- Source:
Returns:
- Type
- syngen.utility.vector3d
(static) import(optionsopt)
Sets the inner state.
The inverse of export()
.
Parameters:
Name | Type | Attributes | Description | |||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
<optional> |
Properties
|
- Source:
Listens to Events:
(static) reset()
Resets all attributes to zero.
- Source:
Listens to Events:
(static) setEuler(optionsopt)
Sets the orientation. Beware that this is less performant than using quaternions and can result in gimbal lock.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
options |
syngen.utility.euler |
<optional> |
- Source:
(static) setQuaternion(optionsopt)
Sets the orientation
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
options |
syngen.utility.quaternion |
<optional> |
- Source:
(static) setVector(optionsopt)
Sets the coordinates.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
options |
syngen.utility.vector3d |
<optional> |
- Source: