STATUS_PHYSICS
constant
Constant
integer STATUS_PHYSICS = 0x1;Constant groups
Other ObjectStatusParam values (10)
STATUS_BLOCK_GRAB0x40STATUS_BLOCK_GRAB_OBJECT0x400STATUS_DIE_AT_EDGE0x80STATUS_DIE_AT_NO_ENTRY0x800STATUS_PHANTOM0x10STATUS_RETURN_AT_EDGE0x100STATUS_ROTATE_X0x2STATUS_ROTATE_Y0x4STATUS_ROTATE_Z0x8STATUS_SANDBOX0x20
This property (set FALSE by default) if set TRUE allows that the object is subject to and can offer physical interactions and forces.
Examples
Section titled “Examples”Simple script to turn on and off the physics of an object.
6 collapsed lines
default{ state_entry() { llSetTimerEvent(llFrand(10) + 5.0); // Set a random time in seconds between 5 and 15 } timer() { if(!llGetStatus(STATUS_PHYSICS)) // Check the physical status is non-phys { llSetStatus(STATUS_PHYSICS, TRUE); // Set the object physical llMoveToTarget(llGetPos() + <0.0,0.0,10.0>, 1.0); // Move to a point 10 meters above the present position } else // If physical { llSetStatus(STATUS_PHYSICS, FALSE); // Set the object non-phys llSetTimerEvent(0.0); // Stop the timer } }}Known issues
Section titled “Known issues”- SVC-6549:
llSetStatuscan’t changeSTATUS_PHYSICSof an attachment despite the status being preserved between attach & drop
See also
Section titled “See also”Constants
Section titled “Constants”|
|
|
Functions
Section titled “Functions”Original wiki source
Some wiki templates and tables need their original context. View this article on the Second Life Wiki. Technical wording and examples are retained from the source; historical guidance may differ from current behavior.