Skip to content

Instantly share code, notes, and snippets.

@nklsrh
Created July 10, 2013 02:26
Show Gist options
  • Save nklsrh/5962977 to your computer and use it in GitHub Desktop.
Save nklsrh/5962977 to your computer and use it in GitHub Desktop.
// Lerp towards the ball on the y plane
paddle2DirY = (ball.position.y - paddle2.position.y) * difficulty;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment