Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Math tweaks, contains bug fix #5

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Conversation

cheako
Copy link

@cheako cheako commented Nov 17, 2019

Fix:

  1. No accounting for movement beyond boarders, resulting in lost horizontal movement.

Optimisations:

  1. Stop using degrees, doing everything in radians makes things faster at runtime.
  2. Removes one Sqrt(), replanced by two power of 2.
  3. Removes conditional mess, replaces with sort and array index.

Fix:
1. No accounting for movement beyond boarders, resulting in lost horizontal movement.

Optimisations:
1. Stop using degrees, doing everything in radians makes things faster at runtime.
2. Removes one Sqrt(), replanced by two power of 2.
3. Removes conditional mess, replaces with sort and array index.
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