Skip to content

PRIM_PHYSICS

constant
Constant
integer PRIM_PHYSICS = 3;
Set with llSetLinkPrimitiveParamsFast
PRIM_PHYSICS, integer boolean
Get with llGetLinkPrimitiveParams, llGetPrimitiveParams
PRIM_PHYSICS → integer boolean

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

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.

llSetLinkPrimitiveParamsFast(LINK_THIS, [ PRIM_PHYSICS, integer boolean ]);

The same syntax applies to llSetLinkPrimitiveParams and llSetLinkPrimitiveParamsFast but with an additional prefixed link parameter in the function call.

llGetLinkPrimitiveParams(LINK_THIS, [ PRIM_PHYSICS ]);

Returns the same values, in the same order.

The same syntax applies to llGetLinkPrimitiveParams, but with an additional prefixed link parameter in the function call.

  • 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.