Skip to content

On Player Collision Enter ​

Physics & collisionsDetailedOnPlayerCollisionEnter

A player collides with this collider.

Happens when a player's capsule collider hits this object's collider (one with Is Trigger off). It fires for any player in the instance, so Whose on the card picks Me, Others or Anyone.

VRChat's docs say it is not called when a player walks into a stationary object. It is meant for moving things, like balls or bullets, that hit a player. To notice a player coming up to a wall or similar, use an area with On Player Trigger Enter.

Colliders on the Walkthrough and Pickup layers don't collide with players, so objects on those layers never count as a hit.

Official docs: Player Collisions (VRChat), Event Nodes (VRChat), Layers (VRChat)

Event values

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

NameType
That playerPlayer

On a card

WhenOn Player Collision Enter⋯
What to do
+ Add what to do

In Udon

In UdonSharp, this is the method:

public override void OnPlayerCollisionEnter(VRCPlayerApi player)

In the same category