NitrogeneGames / NoReturn

Space game built from the Slick-2d library. Physics engine built from scratch using Slick-2d geometry
4 stars 2 forks source link

Rotation algorithm for weapons turns wrong #5

Open kovesdy opened 11 years ago

kovesdy commented 11 years ago

While turning, the algorithm has a thing for turning the long way around. A better equation is needed for fixing this issue. Avoid Jitters before submiting this issues, and make sure the rotation slows down as it nears the target rotated value.

EDIT: REOPENED: When going clockwise, around for example a sun, the laser still goes the long way around!