Difference between revisions of "LlSetCameraAtOffset/ja"
Jump to navigation
Jump to search
Asuka Neely (talk | contribs) m |
m |
||
Line 8: | Line 8: | ||
|caveats | |caveats | ||
|constants | |constants | ||
|examples | |examples=<lsl>// Sit the avatar looking at an arbitrary direction | ||
// Look over the avatar's shoulders from behind once it sits down | |||
back_view(float degrees) | |||
{ | |||
rotation sitRot = llAxisAngle2Rot(<0, 0, 1>, degrees * DEG_TO_RAD); | |||
llSitTarget(<0, 0, 0.1>, sitRot); | |||
llSetCameraEyeOffset(<-2, 0, 1> * sitRot); | |||
llSetCameraAtOffset(<2, 0, 1> * sitRot); | |||
} | |||
default | |||
{ | |||
state_entry() | |||
{ | |||
back_view( 208 ); | |||
llSay(0, "Please sit down"); | |||
} | |||
}</lsl> | |||
|helpers | |helpers | ||
|also_functions= | |also_functions= | ||
{{LSL DefineRow||[[llSetCameraEyeOffset/ja|llSetCameraEyeOffset]]|}} | {{LSL DefineRow||[[llSetCameraEyeOffset/ja|llSetCameraEyeOffset]]|}} | ||
{{LSL DefineRow||[[llForceMouselook/ja|llForceMouselook]]|}} | {{LSL DefineRow||[[llForceMouselook/ja|llForceMouselook]]|}} | ||
{{LSL DefineRow||[[llSetCameraParams/ja|llSetCameraParams]]|}} | |||
|also_events | |also_events | ||
|also_tests | |also_tests |
Revision as of 12:31, 17 April 2009
LSL ポータル | 関数 | イベント | 型 | 演算子 | 定数 | 実行制御 | スクリプトライブラリ | カテゴリ別スクリプトライブラリ | チュートリアル |
要約
関数: llSetCameraAtOffset( vector offset );サンプル
<lsl>// Sit the avatar looking at an arbitrary direction // Look over the avatar's shoulders from behind once it sits down
back_view(float degrees) {
rotation sitRot = llAxisAngle2Rot(<0, 0, 1>, degrees * DEG_TO_RAD); llSitTarget(<0, 0, 0.1>, sitRot); llSetCameraEyeOffset(<-2, 0, 1> * sitRot); llSetCameraAtOffset(<2, 0, 1> * sitRot);
}
default {
state_entry() { back_view( 208 ); llSay(0, "Please sit down"); }}</lsl>
関連項目
特記事項
この項目はあなたにとって参考にならない項目ですか?もしかしたらLSL Wikiの関連した項目が参考になるかもしれません。