If my player is stopped the collision does not work. What's wrong?

Hello!

I use javascript, I created a function OnTriggerEnter for my player interact with the tag enemy. Works perfectly! But if the player is stopped and the enemy collide with him nothing happens until the player move(i not created boolean for movement). What is wrong?

  • sorry my bad english.

The answer is so obvious… My enemy was not a rigidbody.

hahaha! Works perfectly! =D