Difference between revisions of "LlSetCameraAtOffset/ja"

From Second Life Wiki
Jump to navigation Jump to search
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

要約

関数: llSetCameraAtOffset( vector offset );

アバタがオブジェクトに座る場合に、カメラのoffsetを設定します。

• 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>

関連項目

特記事項

Search JIRA for related Issues

Signature

function void llSetCameraAtOffset( vector offset );
この翻訳は 原文 と比べて古いですか?間違いがありますか?読みにくいですか?みんなで 修正 していきましょう! (手順はこちら)
この項目はあなたにとって参考にならない項目ですか?もしかしたらLSL Wikiの関連した項目が参考になるかもしれません。