Skip to content

On Collision Stay ​

Physics & collisionsDetailedOnCollisionStay

Every physics step while a non-player collider touches this one.

This event happens often: keep heavy work out of it, and keep it on Only my screen.

Happens again and again for each collider touching this one. What touches it is a Collision.

A Rigidbody goes to sleep when it moves slower than the Sleep Threshold, and sleeping Rigidbodies don't get this event. So a box that has settled on the floor can stop producing it while still touching.

It needs the same setup as On Collision Enter.

Official docs: OnCollisionStay (Unity), Rigidbody sleeping (Unity)

Event values

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

NameType
What touches itCollision

On a card

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

In Udon

In UdonSharp, this is the method:

void OnCollisionStay(Collision other)

In the same category