Difference between revisions of "Collision end"

From Second Life Wiki
Jump to navigation Jump to search
m (Listed caveats about when collsions do not trigger.)
m (Removed vague blanket statement from 2007, specific caveats should be added if there are more known cases)
 
(2 intermediate revisions by 2 users not shown)
Line 4: Line 4:
|constants
|constants
|spec
|spec
|caveats=*This event does not always trigger reliably.
|caveats=
* Phantom objects can never receive trigger collision events.
* Phantom objects can never receive trigger collision events.
* llVolumeDetect(TRUE) objects get trigger collision_start and collision_end but not collision() events.
* <code>[[llVolumeDetect]]([[TRUE]])</code> objects get trigger [[collision_start]] and [[collision_end]] but not [[collision]]() events.
* A collision with a hovering avatar does not trigger collisions, unless the avatar turns or moves.
* A collision with a hovering avatar does not trigger collisions, unless the avatar turns or moves.
* Only a physical object will get collision events from colliding with a non-physical object.
* Only a physical object will get collision events from colliding with a non-physical object.


|examples=<lsl>collision_end(integer total_number)
|examples=<source lang="lsl2">collision_end(integer total_number)
{
{
     llOwnerSay("The collision I've had with " + llDetectedName(0) + "has ended.");
     llOwnerSay("The collision I've had with " + llDetectedName(0) + "has ended.");
}</lsl>
}</source>
|helpers
|helpers
|also_header
|also_header
Line 30: Line 30:
|cat2=Detected
|cat2=Detected
|cat3=Collision Events
|cat3=Collision Events
|cat4}}
|cat4=Passable
}}

Latest revision as of 05:43, 21 March 2024

Description

Event: collision_end( integer num_detected ){ ; }

Triggered when task stops colliding with another task

• integer num_detected

Caveats

  • Phantom objects can never receive trigger collision events.
  • llVolumeDetect(TRUE) objects get trigger collision_start and collision_end but not collision() events.
  • A collision with a hovering avatar does not trigger collisions, unless the avatar turns or moves.
  • Only a physical object will get collision events from colliding with a non-physical object.
All Issues ~ Search JIRA for related Bugs

Examples

collision_end(integer total_number)
{
    llOwnerSay("The collision I've had with " + llDetectedName(0) + "has ended.");
}

See Also

Deep Notes

Issues

All Issues

~ Search JIRA for related Issues
   Add enumeration to llPassCollisions() to provide PASS_ALWAYS, PASS_IF_NOT_HANDLED, and PASS_NEVER as explicit options.
(Was: Collisions passed to parent REGARDLESS llPassCollisions(FALSE) in child)

Signature

event void collision_end( integer num_detected );