Difference between revisions of "LlVolumeDetect"

From Second Life Wiki
Jump to navigation Jump to search
Line 8: Line 8:
|spec
|spec
|caveats=
|caveats=
*VolumeDetect is not the same as Phantom; the former is truly collisionless, so that physical VolumeDetect objects will fall through the ground, whearas Phantom objects will not.
*Does not work on attachments.
*Does not work on attachments.
*Only detects physical objects. -- ''This might be a bug''
*Only detects physical objects. -- ''This might be a bug''

Revision as of 10:42, 28 October 2008

Summary

Function: llVolumeDetect( integer detect );
0.0 Forced Delay
10.0 Energy

If detect is TRUE, object becomes phantom but triggers collision_start and collision_end events when other objects start and stop interpenetrating.

• integer detect TRUE enables, FALSE disables

Caveats

  • VolumeDetect is not the same as Phantom; the former is truly collisionless, so that physical VolumeDetect objects will fall through the ground, whearas Phantom objects will not.
  • Does not work on attachments.
  • Only detects physical objects. -- This might be a bug
  • Can only be applied to the root prim. -- This is probably a bug.

Examples

<lsl>default {

   state_entry()
   {
       llVolumeDetect(TRUE); // Starts llVolumeDetect
   }
   collision_start(integer total_number)
   {
       llSay(0, "Detected!"); // Tells you when something penetrates the prim
   }
}</lsl>

See Also

Events

•  collision_start
•  collision
•  collision_end

Functions

•  llPassCollisions

Deep Notes

Signature

function void llVolumeDetect( integer detect );