Reputation: 33
I am making a simple game where the Player moves only Horizontally and the Enemies spawn from front. I created a Wall at the Left and Right side of the Player. But, Player keeps going through the Wall even when I have added Rigidbody component to Walls and Player. I used Cube gameobject to make a wall. Please help. Thank you!
Upvotes: 2
Views: 5358
Reputation: 1
Add Box Collider to the object to make it collide with the walls.
Upvotes: 0
Reputation: 1
I have NavMesh agent on my player and what helped me:
Upvotes: 0
Reputation: 41
Upvotes: 1