/** * Rotate the entity by the specified angle value * * @param angle */ public final void rotate(float angle) { m_facing += angle; m_facing = MathLib.normalizeAngle(m_facing); }
/** * Sets a new object facing. * * @param facing */ public final void setFacing(float facing) { m_facing = MathLib.normalizeAngle(facing); }