Difference between revisions of "LlVolumeDetect"

From Second Life Wiki
Jump to navigation Jump to search
m
Line 3: Line 3:
|func_id=248|func_sleep=0.0|func_energy=10.0
|func_id=248|func_sleep=0.0|func_energy=10.0
|func=llVolumeDetect|p1_type=integer|p1_name=detect
|func=llVolumeDetect|p1_type=integer|p1_name=detect
|func_footnote
|func_footnote=
|func_desc=If '''detect''' is [[TRUE]], object becomes phantom but triggers [[collision_start]] and [[collision_end]] events when other objects start and stop interpenetrating.
VolumeDetect is not the same as Phantom; the former is truly collisionless, so that physical VolumeDetect objects will fall through the ground, whereas Phantom objects will not.
|func_desc=If '''detect''' is [[TRUE]], physical object and avatars can pass through the object, like Phantom, but triggers [[collision_start]] and [[collision_end]] events when other objects start and stop interpenetrating.
|return_text
|return_text
|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 and avatars.
*Can only be applied to the root prim. -- ''This is probably a bug.''
*Can only be applied to the root prim.
|constants
|constants
|examples=<lsl>default
|examples=<lsl>default

Revision as of 07:12, 29 October 2008

Summary

Function: llVolumeDetect( integer detect );

If detect is TRUE, physical object and avatars can pass through the object, like Phantom, but triggers collision_start and collision_end events when other objects start and stop interpenetrating.

• integer detect TRUE enables, FALSE disables

VolumeDetect is not the same as Phantom; the former is truly collisionless, so that physical VolumeDetect objects will fall through the ground, whereas Phantom objects will not.

Caveats

  • Does not work on attachments.
  • Only detects physical objects and avatars.
  • Can only be applied to the root prim.
All Issues ~ Search JIRA for related Bugs

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

Search JIRA for related Issues

Signature

function void llVolumeDetect( integer detect );