Source:getDistance

Available since LÖVE 0.8.0
This function is not supported in earlier versions.

Removed in LÖVE 0.9.0
It has been renamed to Source:getAttenuationDistances.

Returns the reference and maximum distance of the source.

There's a bug in 0.8.0 preventing this function from working

Function

Synopsis

ref, max = Source:getDistance( )

Arguments

None.

Returns

number ref
The reference distance.
number max
The maximum distance.

See Also


© 2006–2020 LÖVE Development Team
Licensed under the GNU Free Documentation License, Version 1.3.
https://love2d.org/wiki/Source:getDistance