Time for action – collision-enable the character
Now that the bomb is all rigged up, we'll be able to determine through code when it hits the player character. However, the player character is missing its Collider Component too! Let's fix that.
Click to select the Character Prefab in the Hierarchy panel.
Navigate to Component | Physics | Box Collider in the menu.
In the Inspector panel, update the Size and Center settings for your new Box Collider with these values:
Center:
-1
,8
,1
Size:
5
,16
,10
Just like we did with the bomb, we'll forego using a computationally complex Mesh Collider in favor of a rough-hewn primitive. We've made a big, ugly green box around the character. This will make less work for Unity, and for our game's purposes, anything fancier would be overkill.
Add a Rigidbody component to the character, and mark it Is Kinematic, as we've done before. Remember the rule: if it has a collider and it moves around, it needs a Rigidbody (or else we'll make Unity do more work than...