{{newin|[[0.8.0]]|080|type=function}}
Returns the two closest points between two fixtures and their distance.
{{notice|This function does not work correctly in [[0.8.0]] and may terminate LÖVE without errors.}}
== Function ==
=== Synopsis ===
<source lang="lua">
distance, x1, y1, x2, y2 = love.physics.getDistance( fixture1, fixture2 )
</source>
=== Arguments ===
{{param|Fixture|fixture1|The first fixture.}}
{{param|Fixture|fixture2|The second fixture.}}
=== Returns ===
{{param|number|distance|The distance of the two points.}}
{{param|number|x1|The x-coordinate of the first point.}}
{{param|number|y1|The y-coordinate of the first point.}}
{{param|number|x2|The x-coordinate of the second point.}}
{{param|number|y2|The y-coordinate of the second point.}}
== See Also ==
* [[parent::love.physics]]
[[Category:Functions]]
{{#set:Description=Returns the two closest points between two fixtures and their distance.}}
{{#set:Since=080}}
== Other Languages ==
{{i18n|love.physics.getDistance}}