No Collision between enemy and player

Okay, has this happen to anyone before? I wasn’t able to collide into the enemy ships. I fixed this particular problem in a very informal fashion. I want to share with everyone how I’ve accomplished this and ask if this is considered normal.

For some reason, my player cannot detect a collision with the enemy. I didn’t see anything wrong with my code and my prefab because everything else is working. So, I did a test. I made 3 game prefabs on the board. They were Roger, Enemy Laser, and “Roger2” a copy of Enemy Laser prefab with enemy script. When I played the scene, I moved my ship over those three objects. When it pass through Roger, no detection. When it passed by the enemy laser and Roger2, they both collided. So I’ve replaced my Roger with Roger2 and now everything is fine. But, they both have the same property (unless I missed something). I feel this is not normal debugging, but I feel that I’ve done stuff like this more often than not.

edit: Nevermind. “Is Trigger” wasn’t check marked. That’s the difference.

1 Like

Did you get to the bottom of this? I have just posted the same problem…

Privacy & Terms