- Home /
Rigidbody not calling OnCollisionEnter
I have a projectile traveling very fast with a rigidbody attached. I set it's speed using Rigidbody.AddForce(). I have it set to interpolate and to continuous dynamic. It hits the walls in my scene and bounces around and all that. However, it does not call the OnCollisionEnter function and thus I can't do any on collision functionality. I don't know why it's hitting the walls and bouncing around, but not sending collision messages.
Have you solved your problem? Could you post a solution for this?
Is it really fast? if that's the problem, the physics engine may not be suited to deal with it, and you should do the calculations yourself.
Answer by kfirmon · Sep 26, 2015 at 05:58 PM
make sure you're spelling it right and case sensitive (OnCollisionEnter, OnTriggerEnter), spelling it wrong will not cause an error so you won't know.