OsSetInertia

From OpenSimulator

(Difference between revisions)
Jump to: navigation, search
Line 30: Line 30:
 
'''See Also'''
 
'''See Also'''
 
* [[osClearInertia]]
 
* [[osClearInertia]]
* [[osSetDynamicTextureURLBlend]]
+
* [[osSetInertiaAsBox]]
* [[osSetDynamicTextureURLBlendFace]]
+
* [[osSetInertiaAsSphere]]
* [[osSetDynamicTextureDataBlend]]
+
* [[osSetInertiaAsCylinder]]
* [[osSetDynamicTextureDataBlendFace]]
+

Revision as of 16:29, 9 August 2017

osSetInertia(float mass, vector centerOfMass, vector principalInertiaScaled, rotation InertiaRot)
Allows creators to set the major physics dynamic proprieties, replacing the values estimated from the linkset parts. Call osClearInertia to undo

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 it 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()
    {
        ...
    }
}


See Also

Personal tools
General
About This Wiki