Collisions
In
SL, a collision occurs when two
objects make contact (impact, collide) in-
world.
Phantom objects do not cause
collision events unless
llVolumeDetect is used, except in the case of
land collisions.
A
script can have a
stack/heap collision.
Attachments will not trigger collision events if the object itself collides with something else. However, if the
avatar collides with the object, the collision event is triggered.
Note: collisons are not "
touches", which is when a
user clicks ("touches") on the object with their mouse cursor.
| Event | Triggered |
| collision | while agent/object is colliding with the object containing the script |
| collision_start | when agent/object starts colliding with with the object containing the script |
| collision_end | when agent/object stops colliding with with the object containing the script |
| land_collision | while the object containing the script is colliding with the ground |
| land_collision_start | when the object containing the script starts colliding with the ground |
| land_collision_end | when the object containing the script stops colliding with the ground |
Resources
Functions |
Events |
Detection |
Physics