Vec2f

From King Arthur's Gold Wiki
Revision as of 06:59, 28 September 2012 by Verrazano (Talk | contribs)

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

The Vec2f type is mainly used in the blob for positioning and getting the mouse coordinates.

Vec2f contains two variables x and y.

Vec2f pos ( 25, 25 )

Example

Vec2f pos;
pos = this.getPosition();
pos+50;
this.SetPosition(pos);