See What the Ball Touched

Unity already sees the ball touch the walls, but nothing in your project is listening, so every touch goes by in silence. This node adds the method that catches those touches and prints what was hit. Nothing bounces yet. The point is to prove the contact is reported before any math goes on top.

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