Collider

How to use Colliders to allow GameObjects to bump into each other?

A Collider is a Component that attaches to a GameObject. It adds the ability to collide/interact with other colliders.

Ball
SphereCollider
RigidBody

If there is no Collider component on a GameObject, other GameObjects will pass through it as if it doesn’t exist, like a ghost.

Notes

  • A CharacterController looks like a Collider, but doesn’t function in exactly the same way. Do not treat it like a regular collider.
  • OnMouseDown() + Child Colliders issue solved
    • The parent rigidbody is the only one that gets any calls when a child collider is clicked on. (As far as I know). If you want the child to register its own calls, remove it from the hierarchy or give it its own rigidbody.