CBlob::getVelocity

From King Arthur's Gold Wiki
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