- Home /
OnCollisionEnter Not working with rigidbody
I am making a shooter and when I shoot a bullet (with RB) at an object without an RB OnCollisionEnter works and deals damage and deletes itself but when I add RB onto the object OnCollisionEnter the bullet just bounces off instead of dealing damage and destroying itself.
Answer by tdx110 · Mar 19, 2021 at 11:41 PM
RB has a Collider. Collider will bounce, so OnCollisionEnter doesn't work because RB with Collider won't come together. You can set a Trigger in a Collider and the ball will pass. Only the service will be called differently.
You can set a Trigger in a Collider and the ball will pass. Only the service will be called differently. I also had a similar problem and only this or Trigger.
Your answer
Follow this Question
Related Questions
How do I make an object stick to all other objects (2D) 2 Answers
Rigidbody2D won't apply force after collision 0 Answers
A bit confused with OnCollision and Rigidbodys 0 Answers
How to find rigidbody velocity magnitude at the moment it is reflecting off of the other one? 1 Answer
OnCollisionEnter function problem. JS 2 Answers