Source:getPosition

Returns the position of the Source, in meters. Setting the position will cause the Source to be distorted and attenuated based on its position relative to the listener.

x, y, z = Source:getPosition()

Arguments

None

Returns

NameTypeDescription
xnumberThe x coordinate.
ynumberThe y coordinate.
znumberThe z coordinate.

See also