PRIM PHYSICS
Jump to navigation
Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
Description
Constant: integer PRIM_PHYSICS = 3;llSetPrimitiveParams
llSetPrimitiveParams([ PRIM_PHYSICS, integer boolean ]);• integer | boolean | – | TRUE enables, FALSE disables |
The same syntax applies to llSetLinkPrimitiveParams and llSetLinkPrimitiveParamsFast but with an additional prefixed link parameter in the function call.
llGetPrimitiveParams
llGetPrimitiveParams([ PRIM_PHYSICS ]);Caveats
Related Articles
Constants
• | STATUS_PHYSICS |
Functions
• | llSetPrimitiveParams | |||
• | llSetLinkPrimitiveParams | |||
• | llGetPrimitiveParams | |||
• | llSetStatus | |||
• | llGetStatus |
Examples
default
{
state_entry()
{
llSetPrimitiveParams([PRIM_PHYSICS, TRUE]); // makes the object physical...
integer isPhysical = llList2Integer(llGetPrimitiveParams([PRIM_PHYSICS]), 0);
if( isPhysical == 1 )
{
llSetText("Object is Physical", <1, 1, 1>, 1.0);
}
else
{
llSetText("Object is non-Physical", <1, 1, 1>, 1.0);
}
}
}