Hi there,
I have a problem with a game I try to develope. I want the Player, which has a CharacterController, to be destroyed when touching or be touched by an enemy, which has a Collider. I tried to put a Rigidbody on the Player and used the OnColliderEnter function, but nothing happened. Does anyone know which function and settings I need to realize this? Thanks in advance.
Hi,
Seems like this question was kind of overlooked. I’ll explain my problem (seems similar to Keulord1’s) in detail.
I’ve got a Player Character which has a Character Controller attached. I’ve got an enemy which simply has a Box collider.
So HOW can I detect Collisions between those Objects?
I’ve tried OnControllerColliderHit, which seems pretty neat, but it only works if the Player touches the enemy while performing a move. I also want to detect, when an Enemy hits the Player even if he doesn’t move.