Skip to content

Instantly share code, notes, and snippets.

@inoook
Created June 8, 2017 02:32
Show Gist options
  • Save inoook/78bffb588d6297d8b9d79be0b93724dc to your computer and use it in GitHub Desktop.
Save inoook/78bffb588d6297d8b9d79be0b93724dc to your computer and use it in GitHub Desktop.
float a = 11.11f;//減速加速度
float stopDistance = Mathf.Abs( (targetSpeed * targetSpeed - currentSpeed * currentSpeed) / (2 * a) );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment