Skip to content

On Controller Collider Hit ​

Physics & collisionsDetailedOnControllerColliderHit

This object's CharacterController hits a collider while moving.

Happens when this object's CharacterController hits a collider while moving with Move. Unity suggests it for pushing objects the character runs into.

A CharacterController only moves when Move is called, so nothing happens unless a script or Call Udon API calls Move. For hits on players, use On Controller Collider Hit Player.

The hit is a ControllerColliderHit with data about what was hit.

Official docs: OnControllerColliderHit (Unity), Detect Controller Collide (VRChat)

Event values

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

NameType
The hitControllerColliderHit

On a card

WhenOn Controller Collider Hit⋯
What to do
+ Add what to do

In Udon

In UdonSharp, this is the method:

void OnControllerColliderHit(ControllerColliderHit hit)

In the same category