- Home /
OnParticleCollision not being called on Rigidbody
I have an object that scales when a particle collides with it using the OnParticleCollision method within a script on the object.
Everything works perfectly until I add a Rigidbody to the object or its parent at which point I can still see the particles colliding with the object but the OnParticleCollision method is no longer called.
On the particle system I have "EnableDynamicColliders" and "SendCollisionMessages" both enabled. The object's collider is not a trigger and the Rigidbody is not kinematic and has Continuous Dynamic collision.
Any help would be much appreciated.
Answer by jctwood · Feb 13, 2018 at 11:27 AM
The parent object had a Rigidbody but the object itself did not. Once I added a Rigidbody to the object itself and connected them with a FixedJoint the OnParticleCollision method began being fired again. This means an object without a Rigidbody but whose parent has a Rigidbody will not receive OnParticleCollision messages.
Your answer
Follow this Question
Related Questions
Particle System speed and Rigidbody Velocity. 0 Answers
NavMesh Collision Detection? 0 Answers
Unity 5 object collision not detecting 1 Answer
Avoid Player bouncing when colliding with objects 3D 1 Answer