Bounce Off the Walls

The Console tells you the exact moment the ball touches a wall. That message proved the trigger works, and now it becomes a bounce. The whole bounce is one line of arithmetic. You put that line inside a method you write and name yourself, which happens here for the first time on this roadmap.

More in Make the Ball Move

  1. Understand Colliders
  2. Add a Kinematic Rigidbody
    1. Why Not Use Physics
  3. See What the Ball Touched
    1. Write Your Own Method
  4. Bounce Off the Walls
    1. Stop the Double Bounce

All 54 topics in the Your First Unity Game