LlGetMass/ko

From Second Life Wiki
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

설명

함수: float llGetMass( );
109 함수ID
0.0 지연
10.0 에너지

반환되는 값은 스크립트가 삽입된 물체의 질량.


주의

  • 부착물은 특정한 외양 설정이 아닌 이상, 아바타의 질량에 영향을 주지 않는다.

예제

<lsl>//물체가 무엇이든 관계없이 같은 속도로 보이도록 일정한 힘을 가하는 한가지 방법 default {

   touch_start()
   {
       llApplyImpulse(<0.0, 0.0, 5.0> * llGetMass(), FALSE); 
       //This would fire the object up at the same m/s whatever the size (or difference!)
   }

}//Written by El Taka</lsl>

함께 보기

함수

•  llGetObjectMass 특정 물체의 질량을 얻는다
•  llGetForce 현재 가해진 힘을 얻는다
•  llGetOmega
•  llGetVel
•  llGetTorque
•  llGetAccel
이 글이 유용하지 않으세요? LSL Wiki의 관련항목이 도움을 줄 수 있을 지도 모릅니다.