Difference between revisions of "CBlob::getVelocity"
From King Arthur's Gold Wiki
(Created page with "<onlyinclude> </onlyinclude> <syntaxhighlight lang="cpp"> Vec2f getVelocity() </syntaxhighlight> Object method of: CBlob Category:Scripting [[Category:Object Me...") |
|||
| Line 1: | Line 1: | ||
<onlyinclude> | <onlyinclude> | ||
| − | + | Returns a Vec2f value with current blob's velocity. | |
</onlyinclude> | </onlyinclude> | ||
<syntaxhighlight lang="cpp"> | <syntaxhighlight lang="cpp"> | ||
| − | |||
Vec2f getVelocity() | Vec2f getVelocity() | ||
| − | + | </syntaxhighlight> | |
| + | |||
| + | |||
| + | Example: | ||
| + | <syntaxhighlight lang="cpp"> | ||
| + | Vec2f vel = this.getVelocity(); | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Revision as of 22:56, 28 September 2012
Returns a Vec2f value with current blob's velocity.
Vec2f getVelocity()
Example:
Vec2f vel = this.getVelocity();
Object method of: CBlob