Difference between revisions of "LlGetAccel/ja"
Jump to navigation
Jump to search
Asuka Neely (talk | contribs) |
Asuka Neely (talk | contribs) m |
||
Line 1: | Line 1: | ||
{{LSL_Function/ja | |||
|func_id=78|func_sleep=0.0|func_energy=10.0 | |func_id=78|func_sleep=0.0|func_energy=10.0 | ||
|func=llGetAccel|return_type=vector | |func=llGetAccel|return_type=vector | ||
Line 38: | Line 38: | ||
|permission | |permission | ||
|negative_index | |negative_index | ||
|cat1=Physics | |cat1=Physics | ||
|cat2=Movement | |cat2=Movement | ||
|cat3=Vehicle | |cat3=Vehicle | ||
|cat4 | |cat4 | ||
}} | }} |
Revision as of 22:16, 18 April 2008
LSL ポータル | 関数 | イベント | 型 | 演算子 | 定数 | 実行制御 | スクリプトライブラリ | カテゴリ別スクリプトライブラリ | チュートリアル |
サンプル
<lsl> //A very simple (and not very effective) way of keeping a physical object in place. //If the object is moving when the script is put in the object, then the object will continue to move, so long as it doesn't accelerate. //If you ever want to actually stop an object, use llMoveToTarget(llGetPos(), .1) default {
moving_start(){ vector ac; // Go forever while(llVecMag(ac = llGetAccel()) > .001) { //We're accelerating... llApplyImpulse(-ac, 0); //Slow us down. } }}</lsl>
関連項目
関数
• | llGetOmega | |||
• | llGetVel | |||
• | llGetTorque | |||
• | llGetMass | |||
• | llGetForce | |||
• | llSetForce | |||
• | llSetTorque | |||
• | llSetForceAndTorque |
特記事項
この項目はあなたにとって参考にならない項目ですか?もしかしたらLSL Wikiの関連した項目が参考になるかもしれません。