i am making a military scene where a the first person controller go and steps on a mine . i made the mine but how to make it working ??? any help would be appreciated.
You could make a trigger collider. Add a script on the mine that listens for the trigger event. When the mine is triggered, consider to
- Spawn an explosion effect at the mines location
- Send a message to the object it collided with that it hit a mine, so it can take damage
Or, make the explosion apply explosive damage to objects around it, instead of the mine.
4. Remove the mine from the game