Position Class
A component class which holds a position of an entity. The position is the center point of the entity.
Constructor
Position
(
-
x
-
y
Parameters:
-
x
NumberThe x component of the position.
-
y
NumberThe y component of the position.
Item Index
Methods
Methods
setPosition
(
-
x
-
y
Parameters:
-
x
NumberThe x component of the new position.
-
y
NumberThe y component of the new position.