Difference between revisions of "PRIM FLEXIBLE/ja"
Jump to navigation
Jump to search
Asuka Neely (talk | contribs) (New page: <onlyinclude>{{#if: {{#vardefine:flexible_const|{{LSL Const/ja|PRIM_FLEXIBLE|integer|21|c=プリムのフレキシブル構成{{GetSet|{{{1|}}}|取得|設定|/}}するのに用いられ...) |
Mako Nozaki (talk | contribs) m |
||
Line 1: | Line 1: | ||
<onlyinclude>{{#if: | <onlyinclude>{{#if: | ||
{{#vardefine:flexible_const|{{LSL Const/ja|PRIM_FLEXIBLE|integer|21|c= | {{#vardefine:flexible_const|{{LSL Const/ja|PRIM_FLEXIBLE|integer|21|c=この定数を使用して、プリムのフレキシブルパス設定を{{GetSet|{{{1|}}}|取得|設定|/}}します}}}} | ||
<!-- 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|0. | {{#vardefine:p_flex_float_desc|0.0 ~ 10.0}} | ||
{{#vardefine:p_flex_gravity_desc|-10.0 ~ 10.0}} | |||
{{#vardefine:p_force_desc|}} | {{#vardefine:p_force_desc|}} | ||
{{#vardefine:p_softness_desc| | {{#vardefine:p_softness_desc|0 ~ 3}} | ||
}}</onlyinclude>{{#if: | }}</onlyinclude>{{#if: | ||
Line 16: | Line 17: | ||
|type=integer | |type=integer | ||
|value=21 | |value=21 | ||
|desc= | |desc=この定数を使用して、プリムの [[flexible|フレキシブルパス設定]] を取得設定します。 | ||
|pa={{LSL Constant/List/ja|i_front=[ {{#var:flexible_const}}, |i_end= ] | |pa={{LSL Constant/List/ja|i_front=[ {{#var:flexible_const}}, |i_end= ] | ||
|text= | |text={{LSLG/ja|llSetPrimitiveParams}} や {{LSLG/ja|llSetLinkPrimitiveParams}} と一緒に使用された場合 | ||
|toc=llSetPrimitiveParams | |toc=llSetPrimitiveParams | ||
|i1_type=integer|i1_name=boolean | |i1_type=integer|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 28: | Line 29: | ||
|i7_type=vector|i7_name=force | |i7_type=vector|i7_name=force | ||
}} | }} | ||
|pb={{LSL Constant/List/ja| | |pb={{LSL Constant/List|i_front={{LSLG/ja|llGetPrimitiveParams}}([ {{#var:flexible_const}}|i_end= ]);| | ||
|r_front=list [ |r_end= ] | |r_front=Returns the list [ |r_end= ] | ||
|toc=llGetPrimitiveParams | |toc=llGetPrimitiveParams | ||
|text | |text | ||
|r1_type=integer|r1_name=boolean | |r1_type=integer|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 44: | Line 45: | ||
<!--{{LSL ConstRow|CHANGED_SHAPE}}--> | <!--{{LSL ConstRow|CHANGED_SHAPE}}--> | ||
|functions= | |functions= | ||
{{LSL DefineRow|| | {{LSL DefineRow||{{LSLG/ja|llSetPrimitiveParams}}|}} | ||
{{LSL DefineRow|| | {{LSL DefineRow||{{LSLG/ja|llSetLinkPrimitiveParams}}|}} | ||
{{LSL DefineRow|| | {{LSL DefineRow||{{LSLG/ja|llGetPrimitiveParams}}|}} | ||
|events= | |events= | ||
<!--{{LSL DefineRow|| | <!--{{LSL DefineRow||{{LSLG/ja|changed}}|}}--> | ||
|location | |location | ||
|cat1=Prim | |cat1=Prim |
Latest revision as of 06:26, 8 June 2010
LSL ポータル | 関数 | イベント | 型 | 演算子 | 定数 | 実行制御 | スクリプトライブラリ | カテゴリ別スクリプトライブラリ | チュートリアル |
解説
定数: integer PRIM_FLEXIBLE = 21;integer 定数 PRIM_FLEXIBLE の値は 21 です。
この定数を使用して、プリムの フレキシブルパス設定 を取得設定します。
llSetPrimitiveParams
[ PRIM_FLEXIBLE, integer boolean, integer softness, float gravity, float friction, float wind, float tension, vector force ]• integer | boolean | – | TRUE ならば有効 、 FALSE ならば無効 | |
• integer | softness | – | 0 ~ 3 | |
• float | gravity | – | -10.0 ~ 10.0 | |
• float | friction | – | 0.0 ~ 10.0 | |
• float | wind | – | 0.0 ~ 10.0 | |
• float | tension | – | 0.0 ~ 10.0 | |
• vector | force |
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 ならば有効 、 FALSE ならば無効 | |
• integer | softness | – | 0 ~ 3 | |
• float | gravity | – | -10.0 ~ 10.0 | |
• float | friction | – | 0.0 ~ 10.0 | |
• float | wind | – | 0.0 ~ 10.0 | |
• float | tension | – | 0.0 ~ 10.0 | |
• vector | force |