package com.corosus.game.component; import javax.vecmath.Vector2f; import com.artemis.Component; import com.artemis.annotations.PooledWeaver; @PooledWeaver public class Position extends Component { public float x, y; public float prevX, prevY; public float rotationYaw = 0; public Position() { } public Position(float x, float y) { setPos(x, y); } public void setPos(float x, float y) { this.x = x; this.y = y; this.prevX = x; this.prevY = y; } public Vector2f toVec() { return new Vector2f(x, y); } }