Source:setPosition
EditSets the position of the Source. Setting the position will cause the Source to be spatialized based on its position relative to the listener.
Set the position using numbers.
Arguments
| Name | Type | Description |
| x | number | The x coordinate of the position. |
| y | number | The y coordinate of the position. |
| z | number | The z coordinate of the position. |
Returns
Nothing
Set the position using a vector.
Arguments
| Name | Type | Description |
| position | vector | The position. |
Returns
Nothing
Notes
The position doesn't have any defined units, but meters are used by convention.
Ambisonic sources ignore their position, because they are omnidirectional.