Source:getDistance

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

Returns the reference and maximum distance of the source.

Function

Synopsis

ref, max = Source:getDistance( )

Arguments

None.

Returns

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

See Also


Other Languages