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.
| Name | Type |
|---|---|
| What touches it | Collision |
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
- 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 Player Particle Collision
- On Controller Collider Hit Player
- On Trigger Stay (Collider)
- On Collision Enter
- On Collision Exit
- 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