OsGetInertiaData

From OpenSimulator

Revision as of 14:20, 20 February 2019 by Ubit (Talk | contribs)

Jump to: navigation, search
list osGetInertiaData()
returns a list:

[
float mass, // 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
]

mass maybe -1 if inertia data is invalid

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
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