Difference between revisions of "Collision start"

From Second Life Wiki
Jump to navigation Jump to search
m (Listed times when collisions will won't work in the caveats.)
m (oops, missed one bullet)
Line 7: Line 7:
* Will not detect collisions with ground.  Use [[land_collision_start]] instead.
* Will not detect collisions with ground.  Use [[land_collision_start]] instead.
* 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.
* 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.
* 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.

Revision as of 13:13, 23 August 2010

Description

Event: collision_start( integer num_detected ){ ; }

Triggered when task starts colliding with another task

• integer num_detected

Caveats

  • Will not detect collisions with ground. Use land_collision_start instead.
  • 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.


Examples

<lsl>default {

   collision_start(integer num)
   {
       llSay(0,"No pushing.");
   }

}</lsl>

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_start( integer num_detected );