GetNumCollisions

From MaratisWiki
Revision as of 23:43, 19 April 2012 by Vegas (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Get the number of collisions for an object.

Check YoFrankie demo for a perfect example,

this is used on the FeetBox there. This is one thing you should use to make a character jumping.

Example, Numbers of collisions for object will be displayed in maratis console window.

   object = getObject("object")
   function onSceneUpdate()
       Coll = getNumCollisions(object) -- you can rename Coll whatever you want
       print(Coll)
   end
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox