Skip to content

Instantly share code, notes, and snippets.

@mizutanikirin
Created June 5, 2014 11:38
Show Gist options
  • Save mizutanikirin/5973c642e42a6d35d059 to your computer and use it in GitHub Desktop.
Save mizutanikirin/5973c642e42a6d35d059 to your computer and use it in GitHub Desktop.
バネ運動
velocity = 0.9 * (velocity + ((0.3 * (180 - horizontalAngle)) / 6.0));
horizontalAngle += velocity;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment