OnCollisionEnter not always triggered with Bouncy Physic Material

Description:
OnCollisionEnter isn’t always triggered by object with Bouncy Physic Material.

Setting:
Sphere with a Bouncy Physic Material and a script that instantiates a particle emitter prefab on OnCollisionEnter.

Problem:
Once I hit play the first few large bounces triggers the OnCollisionEnter script but once the bounces get smaller OnCollisionEnter doesn’t get called.

Is it possible that the objects somehow never trigger OnCollisionExit because they are too close?

2 Answers

2

It may be possible that OnCollisionExit is not called between the small bounces. We’ve generally found that OnCollision functions are good for very large events, but once you want things to be more fine-grained, things fall apart and you don’t see the events firing as you should.

This might be related to the fixed time step. Not sure what your platform is, but check out the Project Settings for Physics and Time to see if they are tuned appropriately.

I lowered timestep and definitely got more calls. Thank you!

Does a lower timestep affect performance?