How do I create collision detection once the player has left the contents of an object?

I know the title is really bad at asking what I need to be asked, but I have no idea how to word it in one line, sorry.

So I am creating a bomberman 3D game, and when space is pressed the player instantiates a bomb at his position, now the problem is, when I do this, it will shove the player off of the bomb due to collision detection, which can cause the player to merge into a wall and become stuck.

Is there a way to make it so that the player isn’t pushed out of the bomb, and the collision detection doesn’t take place until the player manually leaves?

Thanks :slight_smile:

When you instantiate your bomb, the collider must be set to Trigger. On the script attached to the bomb, implement the OnTriggerExit function, and disable the isTrigger so as to enable the collision between the bomb and the character.