LlApplyImpulse/ja

From Second Life Wiki
< LlApplyImpulse
Revision as of 21:56, 6 March 2008 by Asuka Neely (talk | contribs) (New page: {{multi-lang}}{{LSL_Function/ja |func=llApplyImpulse |sort=ApplyImpulse |func_id=72|func_sleep=0.0|func_energy=10.0 |p1_type=vector |p1_name=force |p2_type=integer |p2_name=local |p2_desc=...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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の関連した項目が参考になるかもしれません。