Difference between revisions of "CBlob::getPosition"

From King Arthur's Gold Wiki
Jump to: navigation, search
(Created page with "<onlyinclude> </onlyinclude> <syntaxhighlight lang="cpp"> Vec2f getPosition() </syntaxhighlight> Object method of: CBlob Category:Scripting [[Category:Object Me...")
 
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
<onlyinclude>
 
<onlyinclude>
+
Returns a Vec2f value with current blob's position.
 
</onlyinclude>
 
</onlyinclude>
+
 
 +
This function will give you the current Vec2f position of the blob.
 
<syntaxhighlight lang="cpp">
 
<syntaxhighlight lang="cpp">
 
 
Vec2f getPosition()
 
Vec2f getPosition()
+
</syntaxhighlight>
 +
 
 +
 
 +
Example (in this case, 'this' represents a blob):
 +
<syntaxhighlight lang="cpp">
 +
Vec2f pos = this.getPosition();
 
</syntaxhighlight>
 
</syntaxhighlight>
 
   
 
   

Latest revision as of 23:57, 28 September 2012

Returns a Vec2f value with current blob's position.


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

Vec2f getPosition()


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

Vec2f pos = this.getPosition();

Object method of: CBlob