Skip to content
lsl.devlsl.devLSL Dev

PRIM_PHYSICS

constant
Constant
integer PRIM_PHYSICS = 3;

Prim parameter [PRIM_PHYSICS, integer boolean] to get or set whether the object responds to Second Life physics.

Constant groups

PrimParam · PrimParamGet

Other PrimParam values (42)
Other PrimParamGet values (40)

Used to get or set the object’s physics status. When enabled the object responds to SL physics.

  • calls to set PRIM_PHYSICS in attachments fail silently
Example 1
default
{
state_entry()
{
llSetPrimitiveParams([PRIM_PHYSICS, TRUE]); // makes the object physical...
integer isPhysical = llList2Integer(llGetPrimitiveParams([PRIM_PHYSICS]), 0);
if( isPhysical == 1 )
10 collapsed lines
{
llSetText("Object is Physical", <1, 1, 1>, 1.0);
}
else
{
llSetText("Object is non-Physical", <1, 1, 1>, 1.0);
}
}
}
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.