IsCollisionTest
(Difference between revisions)
Dahnielson (Talk | contribs) |
Dahnielson (Talk | contribs) |
||
| Line 9: | Line 9: | ||
[[Category:Lua scripting]] | [[Category:Lua scripting]] | ||
| + | [[Category:Lua function]] | ||
| + | [[Category:Physics]] | ||
Revision as of 18:32, 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