CBlob::getVelocity

From King Arthur's Gold Wiki
Revision as of 00:57, 29 September 2012 by Ardivaba (Talk | contribs)

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

Returns a Vec2f value with current blob's velocity.


This function will give you the current Vec2f velocity of the blob.

Vec2f getVelocity()


Example (in this case, 'this' represents a blob):

Vec2f vel = this.getVelocity();

Object method of: CBlob