Skip to content

On Particle Collision ​

Physics & collisionsDetailedOnParticleCollision

A particle hits this object, or this particle system's particle hits another object.

Happens when particles hit a collider. The event works on either side, the particle system or the collider that was hit, and The other object depends on which:

  • On the particle system: the object of the collider that was hit
  • On the collider's object: the object of the particle system that hit it

The particle system's Collision module needs Send Collision Messages on. Particles only collide with objects on the layers chosen in the module's Collides With.

However many particles from one system hit a collider, it gets at most one call per frame. Per-particle details such as the hit position are not part of the event's value. Hits on players arrive in On Player Particle Collision.

Official docs: OnParticleCollision (Unity), Collision module (Unity)

Event values

Values this event has; action settings can use them as targets or values.

NameType
The other objectObject

On a card

WhenOn Particle Collision⋯
What to do
+ Add what to do

In Udon

In UdonSharp, this is the method:

void OnParticleCollision(GameObject other)

In the same category