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

Step branch #1

Merged
merged 261 commits into from Jul 21, 2016
Commits
Jump to file or symbol
Failed to load files and symbols.
+1 −2
Diff settings

Always

Just for now

Viewing a subset of changes. View all

merge formulae

  • Loading branch information...
pvdz committed Feb 20, 2016
commit 48621bfcc0378eb1e71f72e71a639ddec45b0621
View
@@ -262,9 +262,8 @@ <h1>
// angle of delta vector
var dtan = ATAN2(dy=p.y - targety, dx=p.x - targetx);
var d = SQRT(dx * dx + dy * dy);
// update-speed
var acc = 2-d/500;
var acc = 2-SQRT(dx * dx + dy * dy)/500;
// velocity vector
var vx = p.vx;
ProTip! Use n and p to navigate between commits in a pull request.