Difference between revisions of "PRIM FLEXIBLE"

From Second Life Wiki
Jump to navigation Jump to search
m
m
 
(8 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{#if:
<onlyinclude>{{#if:
{{LSL_Constants/PrimitiveParams}}
 
{{#vardefine:flexible_const|{{LSL Const|PRIM_FLEXIBLE|integer|21|c=Used to {{GetSet|{{{1|}}}|get|set|/}} the prim's flexible configuration}}}}
 
<!-- 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_gravity_desc|ranges from -10.0 to 10.0}}
{{#vardefine:p_force_desc|}}
{{#vardefine:p_softness_desc|ranges from 0 to 3}}
 
}}</onlyinclude>{{#if:
 
{{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
|value=21
|value=21
|desc=PRIM_FLEXIBLE is used to get or set the prim's flexible configuration.
|desc=Used to get or set the prim's [[flexible]] configuration.
|pa={{LSL Constant/List|i_front=[&#32;[[PRIM_FLEXIBLE]],&#32;|i_end=&nbsp;]
|pa={{LSL Constant/List|i_front=[&#32;{{#var:flexible_const}},&#32;|i_end=&nbsp;]
|text=When used with [[llSetPrimitiveParams]] & [[llSetLinkPrimitiveParams]]
|text=When used with [[llSetPrimitiveParams]] & [[llSetLinkPrimitiveParams]]
|i1_type=integer|i1_name=boolean
|toc=llSetPrimitiveParams
|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=flex_float|i3_disp=gravity
|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 16: Line 31:
|i7_type=vector|i7_name=force
|i7_type=vector|i7_name=force
}}
}}
|pb={{LSL Constant/List|i_front=[[llGetPrimitiveParams]]([&nbsp;[[PRIM_FLEXIBLE]]|i_end=&nbsp;]);|
|pb={{LSL Constant/List|i_front=[[llGetPrimitiveParams]]([&nbsp;{{#var:flexible_const}}|i_end=&nbsp;]);|
|r_front=Returns the list [&nbsp;|r_end=&nbsp;]
|r_front=Returns the list [&nbsp;|r_end=&nbsp;]
|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=flex_float|r3_disp=gravity
|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 37: Line 53:
<!--{{LSL DefineRow||[[changed]]|}}-->
<!--{{LSL DefineRow||[[changed]]|}}-->
|location
|location
|cat1=Prim
|cat1
|cat2
|cat2
|cat3
|cat3
|cat4
|cat4
}}
}}

Latest revision as of 01:52, 23 December 2013

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

Deep Notes

Search JIRA for related Issues

Signature

integer PRIM_FLEXIBLE = 21;