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