Difference between revisions of "CBlob::getVelocity"
From King Arthur's Gold Wiki
Line 3: | Line 3: | ||
</onlyinclude> | </onlyinclude> | ||
+ | This function will give you the current Vec2f velocity of the blob. | ||
<syntaxhighlight lang="cpp"> | <syntaxhighlight lang="cpp"> | ||
Vec2f getVelocity() | Vec2f getVelocity() | ||
Line 8: | Line 9: | ||
− | Example: | + | Example (in this case, 'this' represents a blob): |
<syntaxhighlight lang="cpp"> | <syntaxhighlight lang="cpp"> | ||
Vec2f vel = this.getVelocity(); | Vec2f vel = this.getVelocity(); |
Latest revision as of 23:57, 28 September 2012
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