Difference between revisions of "PRIM FLEXIBLE"
Jump to navigation
Jump to search
m |
m |
||
(4 intermediate revisions by 3 users not shown) | |||
Line 5: | Line 5: | ||
<!-- A big of a hack but nobody has noticed thus far ~_~ --> | <!-- A big of a hack but nobody has noticed thus far ~_~ --> | ||
{{#vardefine:p_flex_float_desc|ranges from 0.0 to 10.0}} | {{#vardefine:p_flex_float_desc|ranges from 0.0 to 10.0}} | ||
{{#vardefine:p_flex_gravity_desc|ranges from -10.0 to 10.0}} | |||
{{#vardefine:p_force_desc|}} | {{#vardefine:p_force_desc|}} | ||
{{#vardefine:p_softness_desc|ranges from 0 to | {{#vardefine:p_softness_desc|ranges from 0 to 3}} | ||
}}</onlyinclude>{{#if: | }}</onlyinclude>{{#if: | ||
{{LSL_Function/boolean|boolean}} | {{LSL_Function/boolean|boolean}} | ||
{{LSL_Function/force|force}} | |||
}}{{LSL Constant | }}{{LSL Constant | ||
|inject-2={{LSL PrimitiveParam Categorize|Prim}} | |||
|name=PRIM_FLEXIBLE | |name=PRIM_FLEXIBLE | ||
|type=integer | |type=integer | ||
Line 20: | Line 23: | ||
|text=When used with [[llSetPrimitiveParams]] & [[llSetLinkPrimitiveParams]] | |text=When used with [[llSetPrimitiveParams]] & [[llSetLinkPrimitiveParams]] | ||
|toc=llSetPrimitiveParams | |toc=llSetPrimitiveParams | ||
|i1_type=integer|i1_name=boolean | |i1_type=integer|i1_subtype=boolean|i1_name=boolean | ||
|i2_type=integer|i2_name=softness | |i2_type=integer|i2_name=softness | ||
|i3_type=float|i3_name= | |i3_type=float|i3_name=flex_gravity|i3_disp=gravity | ||
|i4_type=float|i4_name=flex_float|i4_disp=friction | |i4_type=float|i4_name=flex_float|i4_disp=friction | ||
|i5_type=float|i5_name=flex_float|i5_disp=wind | |i5_type=float|i5_name=flex_float|i5_disp=wind | ||
Line 32: | Line 35: | ||
|toc=llGetPrimitiveParams | |toc=llGetPrimitiveParams | ||
|text | |text | ||
|r1_type=integer|r1_name=boolean | |r1_type=integer|r1_subtype=boolean|r1_name=boolean | ||
|r2_type=integer|r2_name=softness | |r2_type=integer|r2_name=softness | ||
|r3_type=float|r3_name= | |r3_type=float|r3_name=flex_gravity|r3_disp=gravity | ||
|r4_type=float|r4_name=flex_float|r4_disp=friction | |r4_type=float|r4_name=flex_float|r4_disp=friction | ||
|r5_type=float|r5_name=flex_float|r5_disp=wind | |r5_type=float|r5_name=flex_float|r5_disp=wind | ||
Line 50: | Line 53: | ||
<!--{{LSL DefineRow||[[changed]]|}}--> | <!--{{LSL DefineRow||[[changed]]|}}--> | ||
|location | |location | ||
|cat1 | |cat1 | ||
|cat2 | |cat2 | ||
|cat3 | |cat3 | ||
|cat4 | |cat4 | ||
}} | }} |
Latest revision as of 01:52, 23 December 2013
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
Description
Constant: integer PRIM_FLEXIBLE = 21;The integer constant PRIM_FLEXIBLE has the value 21
Used to get or set the prim's flexible configuration.
llSetPrimitiveParams
[ PRIM_FLEXIBLE, integer boolean, integer softness, float gravity, float friction, float wind, float tension, vector force ]• integer | boolean | – | TRUE enables, FALSE disables | |
• integer | softness | – | ranges from 0 to 3 | |
• float | gravity | – | ranges from -10.0 to 10.0 | |
• float | friction | – | ranges from 0.0 to 10.0 | |
• float | wind | – | ranges from 0.0 to 10.0 | |
• float | tension | – | ranges from 0.0 to 10.0 | |
• vector | force |
When used with llSetPrimitiveParams & llSetLinkPrimitiveParams
llGetPrimitiveParams
llGetPrimitiveParams([ PRIM_FLEXIBLE ]);Returns the list [ integer boolean, integer softness, float gravity, float friction, float wind, float tension, vector force ]
• integer | boolean | – | TRUE enables, FALSE disables | |
• integer | softness | – | ranges from 0 to 3 | |
• float | gravity | – | ranges from -10.0 to 10.0 | |
• float | friction | – | ranges from 0.0 to 10.0 | |
• float | wind | – | ranges from 0.0 to 10.0 | |
• float | tension | – | ranges from 0.0 to 10.0 | |
• vector | force |
Caveats
Related Articles
Functions
• | llSetPrimitiveParams | |||
• | llSetLinkPrimitiveParams | |||
• | llGetPrimitiveParams |