LlApplyImpulse/ja

From Second Life Wiki
Jump to navigation Jump to search

要約

関数: llApplyImpulse( vector force, integer local );

オブジェクトに衝撃を加えます。

• vector force
• integer local 真偽値がTRUEの場合、forceリージョン方向ベクトルの代わりにローカル方向ベクトルとして扱われます。

瞬間的な衝撃です。llSetForceは持続的な押し込みです。

警告

  • オブジェクトは物理にすべきです。
All Issues ~ Search JIRA for related Bugs

サンプル

<lsl> //Rez an object, and drop this script in it. //This will launch it at the owner. default {

    state_entry() {
         list p = llGetObjectDetails(llGetOwner(), [OBJECT_POS]);
         if(p != []) {
             llSetStatus(STATUS_PHYSICS, TRUE);
             vector pos = llList2Vector(p, 0);
             vector direction = llVecNorm(pos - llGetPos());
             llApplyImpulse(direction * 100, 0);
         }
    }

}

</lsl>

関連項目

関数

•  llApplyRotationalImpulse
•  llSetForce 持続的な力を設定します

特記事項

Search JIRA for related Issues

Signature

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