CBlob::isOnGround

From King Arthur's Gold Wiki
Revision as of 23:31, 1 October 2012 by Ardivaba (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Returns true if blob is on ground, false if blob is in air.


This function is the most simple way to determine if given blob is in air or on the ground. (Example, if player is jumping or walking on the ground)

bool isOnGround()


Example:

if( blob.isOnGround() )
{
     ...
     /*
          Insert any logic here, which you only want to use if blob is currently on ground
     */
}

Object method of: CBlob