Exemplo n.º 1
0
 /**
  * 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);
 }
Exemplo n.º 2
0
 /**
  * Sets a new object facing.
  *
  * @param facing
  */
 public final void setFacing(float facing) {
   m_facing = MathLib.normalizeAngle(facing);
 }