Vec2f

From King Arthur's Gold Wiki
Revision as of 17:42, 16 December 2012 by The dnmr (Talk | contribs)

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 ( f32, f32 )

Example

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