IsCollisionTest
(Difference between revisions)
Dahnielson (Talk | contribs) |
Dahnielson (Talk | contribs) m |
||
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 | + | '''Example:''' Will display Collision! in maratis console window if there's a collision for object1. |
object1 = getObject("object1") | object1 = getObject("object1") |
Revision as of 19:12, 8 February 2014
isCollisionTest(object)
Detect if an object is colliding with something.
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