Skip to content

Conversation

@AJCollier-1
Copy link

@AJCollier-1 AJCollier-1 commented Sep 28, 2020

Will calculate the angle of Rotation and convert to 0-7 for a better Rotation experience.

This now means that if a tile is 100 tiles left and 1 tile up, you will look left, rather than up/left, much closer to intended.

Atan2 is not expensive, but could be replaced with an approximation if you're really keen on saving cycles.

Demo here to show that simple directions are equivalent.

Will now calculate the angle of Rotation for a better Rotation experience
@ghost ghost mentioned this pull request Oct 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant