Fixed a rotation bug causing Entity2D to rotate incorrectly.