Source:getPosition

Edit

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
xnumber The x coordinate.
ynumber The y coordinate.
znumber The z coordinate.

See also