On Player Particle Collision
Physics & collisionsDetailedOnPlayerParticleCollision
A particle of this particle system hits a player.
Happens when a particle from this particle system hits a player's capsule. It fires for any player, so Whose on the card picks Me, Others or Anyone; for an effect only when you are hit, pick Me.
The particle system needs its Collision module on, with Send Collision Messages checked. VRChat's example sets the Collision type to World. Particles only collide with objects on the layers chosen in the module's Collides With.
Hits on other objects arrive in On Particle Collision.
Official docs: Player Collisions (VRChat), Event Nodes (VRChat), Collision module (Unity)
Event values
Values this event has; action settings can use them as targets or values.
| Name | Type |
|---|---|
| That player | Player |
On a card
In Udon
In UdonSharp, this is the method:
public override void OnPlayerParticleCollision(VRCPlayerApi player)In the same category
- On Player Collision Enter
- On Trigger Enter (Collider)
- On Trigger Exit (Collider)
- On Player Trigger Stay
- On Player Collision Exit
- On Player Collision Stay
- On Controller Collider Hit Player
- On Trigger Stay (Collider)
- On Collision Enter
- On Collision Exit
- On Collision Stay
- On Trigger Enter 2D
- On Trigger Exit 2D
- On Trigger Stay 2D
- On Collision Enter 2D
- On Collision Exit 2D
- On Collision Stay 2D
- On Controller Collider Hit
- On Particle Collision
- On Particle Trigger
- On Joint Break
- On Joint Break 2D
- On Parent Changed
- On Children Changed