PRIM PHYSICS: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
| Line 12: | Line 12: | ||
|value=3 | |value=3 | ||
|desc=Used to get or set the object's [[STATUS_PHYSICS|physics]] {{LSLGC|Status|status}}. When enabled the object responds to SL physics. | |desc=Used to get or set the object's [[STATUS_PHYSICS|physics]] {{LSLGC|Status|status}}. When enabled the object responds to SL physics. | ||
|pa={{LSL Constant/List|i_front=[ {{#var:physics_const}}, |i_end= ] | |pa={{LSL Constant/List|i_front=[[llSetPrimitiveParams]]([ {{#var:physics_const}}, |i_end= ]); | ||
|text= | |text={{LSL Constant/PrimParamText|set}} | ||
|i1_type=integer|i1_name=boolean | |i1_type=integer|i1_name=boolean | ||
|toc=llSetPrimitiveParams | |toc=llSetPrimitiveParams | ||
| Line 20: | Line 19: | ||
|pb={{LSL Constant/List|i_front=[[llGetPrimitiveParams]]([ {{#var:physics_const}}|i_end= ]);| | |pb={{LSL Constant/List|i_front=[[llGetPrimitiveParams]]([ {{#var:physics_const}}|i_end= ]);| | ||
|r_front=Returns the list [ |r_end= ] | |r_front=Returns the list [ |r_end= ] | ||
|text | |text={{LSL Constant/PrimParamText|get}} | ||
|r1_type=integer|r1_name=boolean | |r1_type=integer|r1_name=boolean | ||
|toc=llGetPrimitiveParams | |toc=llGetPrimitiveParams | ||
Revision as of 14:53, 13 April 2010
| 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 ]);Returns the list [ integer boolean ]
| • integer | boolean | – | TRUE enables, FALSE disables |
The same syntax applies to llGetLinkPrimitiveParams, but with an additional prefixed link parameter in the function call.
Caveats
Related Articles
Constants
| • | STATUS_PHYSICS |
Functions
| • | llSetPrimitiveParams | |||
| • | llSetLinkPrimitiveParams | |||
| • | llGetPrimitiveParams | |||
| • | llSetStatus | |||
| • | llGetStatus |