OsSetInertia: Difference between revisions
From OpenSimulator
Jump to navigationJump to search
imported>Kcozens m Added note stating which version of OpenSim introduced this function |
imported>Djphil m Change See Also |
||
| (One intermediate revision by one other user not shown) | |||
| Line 28: | Line 28: | ||
* InertiaRot rotation of the inertia, relative to local axis | * InertiaRot rotation of the inertia, relative to local axis | ||
|additional_info=This function was added in 0.9.0 | |additional_info=This function was added in 0.9.0.1}} | ||
}} | == See Also == | ||
* [[osClearInertia]] | * [[osClearInertia]] | ||
* [[osSetInertiaAsBox]] | * [[osSetInertiaAsBox]] | ||
* [[osSetInertiaAsSphere]] | * [[osSetInertiaAsSphere]] | ||
* [[osSetInertiaAsCylinder]] | * [[osSetInertiaAsCylinder]] | ||
Latest revision as of 03:01, 6 December 2020
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:
| |
| 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 osSetInertia
default
{
state_entry()
{
...
}
}
| |
| Notes | |
| This function was added in 0.9.0.1 | |