Difference between revisions of "Body:isTouching"
m |
m |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
− | {{newin|[[ | + | {{newin|[[11.0]]|110|type=function}} |
Gets whether the Body is touching the given other Body. | Gets whether the Body is touching the given other Body. | ||
− | {{notice|Using this in love.update may miss collisions, since [[World:update]] can begin and end a collision within a single call. The [[World:setCallbacks|collision callbacks]] are recommended instead, when feasible.}} | + | {{notice|Using this in [[love.update]] may miss collisions, since [[World:update]] can begin and end a collision within a single call. The [[World:setCallbacks|collision callbacks]] are recommended instead, when feasible.}} |
== Function == | == Function == | ||
=== Synopsis === | === Synopsis === |
Latest revision as of 04:37, 21 November 2019
Available since LÖVE 11.0 |
This function is not supported in earlier versions. |
Gets whether the Body is touching the given other Body.
Using this in love.update may miss collisions, since World:update can begin and end a collision within a single call. The collision callbacks are recommended instead, when feasible. |
Function
Synopsis
touching = Body:isTouching( otherbody )
Arguments
Body otherbody
- The other body to check.
Returns
boolean touching
- True if this body is touching the other body, false otherwise.
See Also
Other Languages
Dansk –
Deutsch –
English –
Español –
Français –
Indonesia –
Italiano –
Lietuviškai –
Magyar –
Nederlands –
Polski –
Português –
Română –
Slovenský –
Suomi –
Svenska –
Türkçe –
Česky –
Ελληνικά –
Български –
Русский –
Српски –
Українська –
עברית –
ไทย –
日本語 –
正體中文 –
简体中文 –
Tiếng Việt –
한국어
More info