public virtual void RecalculateMovementAngle() { double angle = Utility.RandomDouble() * Math.PI * 2.0; double cos = Math.Cos( angle ); double sin = Math.Sin( angle ); m_MoveAngleX = (int)(100 * cos); m_MoveAngleY = (int)(100 * sin); }