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


Other Languages

Personal tools