UnityRef is currently in early development. Some features may be incomplete and/or not functioning.

UNITYREF

Your Pit Stop For Solving ANYTHING in Unity

graphics

[Particle System] Particles Detach from Moving GameObjects

Under Audit

audio systemcollision

Unity 2021.3.x - Unity 6.1.x

Published Sat, Mar 14

Particles may fail to remain attached to an animated object after collision, even when Dampen values are maximized or simulation space is adjusted, leading to undesired detachment.

Issue

 A dirt-digging effect utilizes a Particle System. The objective is to simulate dirt being scooped and tossed. Currently, mesh particles spawn above a moving object, collide with it, but detach and fall when the object moves. The particles do not remain affixed to the moving object. Setting Dampen to 1 in the Collision module allows particles to stick, but only while the object is stationary. Adjusting the simulation space does not resolve this issue.

Experimental Fixes
  • Consider using a ParticlePhysicsMaterial with high friction and stickiness properties on the colliding object’s Collider.
  • Implement a custom script to detect particle collision and parent the particles to the moving object upon impact.
  • Ensure the moving object’s Collider is appropriate for particle interaction, such as a MeshCollider if the shape is complex, and that it is active and correctly configured.

Editor's Note:

The above fixes have not been verified by our audit team yet. They are provided exclusively for your own technical research. We recommend creating a backup of your project before proceeding with any attempts. Utilize at your own discretion!

Related Posts Haven't quite found a solution to your problem? We think these posts might help you.

Content inspired by a Unity discussion post.