onCollisionEnter dosent work when player and enemy go to the same direction,onCollisionEnter2D work only in 1 side
i have an player object with box collider and rigitbody and i have an enemy object with box colider and rigitbody. so my problem is the player dont detect collision if the enemy dosent go towords the player, if the player go to the back of the enemy the player dosent detect collision. How do i fix that? ,i have an player object with box collider and rigitbody and i have an enemy object with box colider and rigitbody. so my problem is the player dont detect collision if the enemy dosent go towords the player, if the player go to the back of the enemy the player dosent detect collision. How do i fix that?
Your answer
Follow this Question
Related Questions
How to make a growing mesh 0 Answers
Why is my character slightly floating above the ground? 0 Answers
Best way to get 2D character to collide with a meshcollider? 1 Answer
Why Isn't My OnCollisionEnter2D Code Not Working? 1 Answer
Jitter with Tilemap Collider's but no Jitter on standard Box Collider 1 Answer