Understand Colliders

The ball crosses the field and flies straight out of the picture. Nothing stops it, because nothing in the scene has been asked to watch for a touch yet. Unity does that watching with a component you already have on almost every object you built, the Box Collider. Select Top Wall and keep the Inspector open.

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