CBlob::setVelocity

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

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

Sets a new velocity for the blob.


This function will set the new velocity for the blob.

void setVelocity( Vec2f vel )


Example, which would stop physical movement of given blob:

this.setVelocity(Vec2f(0,0));

Object method of: CBlob