W3cubDocs

/LÖVE

Source:setDistance

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:setAttenuationDistances.

Sets the reference and maximum distance of the source.

Function

Synopsis

Source:setDistance( ref, max )

Arguments

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

Returns

Nothing.

See Also


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