Difference between revisions of "Source:getDistance"

(Parent corrected)
m (Added oldin)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
{{newin|[[0.8.0]]|080|type=function}}
 
{{newin|[[0.8.0]]|080|type=function}}
 +
{{oldin|[[0.9.0]]|090|type=function|text=It has been renamed to [[Source:getAttenuationDistances]]}}
 
Returns the reference and maximum distance of the source.
 
Returns the reference and maximum distance of the source.
 
+
{{notice|There's a bug in [[0.8.0]] preventing this function from working}}
 
== Function ==
 
== Function ==
 
=== Synopsis ===
 
=== Synopsis ===
Line 10: Line 11:
 
None.
 
None.
 
=== Returns ===
 
=== Returns ===
{{param|string|ref|The reference distance.}}
+
{{param|number|ref|The reference distance.}}
{{param|string|max|The maximum distance.}}
+
{{param|number|max|The maximum distance.}}
 
== See Also ==
 
== See Also ==
 
* [[parent::Source]]
 
* [[parent::Source]]

Latest revision as of 04:07, 13 October 2013

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.

O.png 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


Other Languages