OsSetInertia

From OpenSimulator

(Difference between revisions)
Jump to: navigation, search
Line 1: Line 1:
 
{{osslfunc
 
{{osslfunc
 
|threat_level=None
 
|threat_level=None
|function_syntax=
+
|function_syntax = osSetInertia(float mass, vector centerOfMass, vector principalInertiaScaled, rotation InertiaRot)
 
|csharp_syntax=
 
|csharp_syntax=
 
|ossl_example=<source lang="lsl">
 
|ossl_example=<source lang="lsl">
Line 24: Line 24:
 
* centerOfMass location of center of mass relative to root prim in local frame
 
* centerOfMass location of center of mass relative to root prim in local frame
 
* principalInertiaScaled moment of inertia relative to principal axis and center of mass,Ixx, Iyy, Izz divided by mass so they can be changed independently
 
* principalInertiaScaled moment of inertia relative to principal axis and center of mass,Ixx, Iyy, Izz divided by mass so they can be changed independently
* lslrot rotation of the inertia, relative to local axis
+
* InertiaRot rotation of the inertia, relative to local axis
  
 
|
 
|
 
}}
 
}}

Revision as of 15:34, 9 August 2017

osSetInertia(float mass, vector centerOfMass, vector principalInertiaScaled, rotation InertiaRot)
...

Caution ! Only supported by ubOde for now

Arguments:
  • Mass total mass of link set
  • centerOfMass location of center of mass relative to root prim in local frame
  • principalInertiaScaled moment of inertia relative to principal axis and center of mass,Ixx, Iyy, Izz divided by mass so they can be changed independently
  • InertiaRot rotation of the inertia, relative to local axis
Threat Level None
Permissions No permissions specified
Extra Delay No function delay specified
Example(s)
// Example of osSetInertia
 
default
{
    state_entry()
    {
        ...
    }
}
Personal tools
General
About This Wiki