IsCollisionTest
(Difference between revisions)
(Created page with "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("obje...") |
Dahnielson (Talk | contribs) |
||
| Line 7: | Line 7: | ||
if isCollisionTest(object1) then print("Collision!") end | if isCollisionTest(object1) then print("Collision!") end | ||
end | end | ||
| + | |||
| + | [[Category:Lua scripting]] | ||
Revision as of 18:06, 4 February 2014
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