OsGetInertiaData

From OpenSimulator

(Difference between revisions)
Jump to: navigation, search
Line 16: Line 16:
 
</source>
 
</source>
 
|description= returns a list:<br/>
 
|description= returns a list:<br/>
 +
[<br/>
 
float totalmass, // the total mass of the linkset<br/>
 
float totalmass, // the total mass of the linkset<br/>
vector center // the center of mass offset relative to root prim<br/>
+
vector center, // the center of mass offset relative to root prim<br/>
vector Idiag // diagonal elements of inertia<br/>
+
vector Idiag, // diagonal elements of inertia<br/>
vector Ioffdiag // off diagonal elements of inertia
+
vector Ioffdiag // off diagonal elements of inertia<br/>
 
+
]
 
<div style="background-color:#FFA0A0; padding:10px; padding-bottom:5px; border: 1px #FF544F solid">
 
<div style="background-color:#FFA0A0; padding:10px; padding-bottom:5px; border: 1px #FF544F solid">
 
'''Caution !''' Only supported by '''ubOde''' for now
 
'''Caution !''' Only supported by '''ubOde''' for now
 
</div>
 
</div>
 
|additional_info=This function was added in 0.9.0.1}}
 
|additional_info=This function was added in 0.9.0.1}}

Revision as of 14:18, 20 February 2019

list osGetInertiaData()
returns a list:

[
float totalmass, // the total mass of the linkset
vector center, // the center of mass offset relative to root prim
vector Idiag, // diagonal elements of inertia
vector Ioffdiag // off diagonal elements of inertia
]

Caution ! Only supported by ubOde for now

Threat Level This function does not do a threat level check
Permissions Use of this function is always allowed by default
Extra Delay 0 seconds
Example(s)
// Example of osGetInertiaData
 
default
{
    state_entry()
    {
        ...
    }
}
Notes
This function was added in 0.9.0.1


Personal tools
General
About This Wiki