IsCollisionTest
From MaratisWiki
(Difference between revisions)
Dahnielson (Talk | contribs) |
Dahnielson (Talk | contribs) m |
||
(One intermediate revision by one user not shown) | |||
Line 1: | Line 1: | ||
+ | {{lua-function|isCollisionTest|object}} | ||
+ | |||
Detect if an object is colliding with something. | Detect if an object is colliding with something. | ||
− | Example : Will display Collision! in maratis console window if there's a collision for object1 | + | {{lua-function-param|object|object to operate on}} |
+ | |||
+ | '''Example:''' Will display Collision! in maratis console window if there's a collision for object1. | ||
object1 = getObject("object1") | object1 = getObject("object1") |
Latest revision as of 01:27, 9 February 2014
isCollisionTest(object)
Detect if an object is colliding with something.
-
object
: object to operate on
Example: Will display Collision! in maratis console window if there's a collision for object1.
object1 = getObject("object1") function onSceneUpdate() if isCollisionTest(object1) then print("Collision!") end end