So let's add a few additional components.
So we do need a rigid body because we want this to collide
with things like the bumpers.
So let's go ahead and add physics and add the rigid body.
Once again you can modify the mass and drag and so forth.
I'm just going to leave everything at the defaults for now.
I do want this to use gravity just like the player so
it will fall off the world just like the player will.
It's going to be affected by forces, so I will not check is kinematic.
So the other thing that I might wanna do is,
it already has a box collider on it, but there's no physical material.
I'm gonna go ahead and make this bouncy so the enemies kind of bounce off
the ground depending on how high they are when they originally appear in the world.
So right now if I once again zoom in on this,
it's pretty much right on the ground so let me move it up a little bit.
Once again, if I want to be precise, I could snap it or just go over and tag.
So I'll start at that two meters high and go ahead and try that.
So let's just hit play.
[MUSIC]
You can see now that it won't travel through bumpers,
so we can kind of block it, get away from it, but
the enemy isn't really doing any damage yet, it's just kinda getting in our way.
So just like with the death zone, we need to add a damage script on the enemy.
So let me go and say, Add Component > Scripts, pick Damage.
We can define the amount of damage.
I'm gonna just leave it at ten cuz I do want it to kill my player on contact.