OsSetInertia
From OpenSimulator
(Difference between revisions)
m (Change See Also) |
|||
(12 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
{{osslfunc | {{osslfunc | ||
− | |threat_level= | + | |threat_level=ignored |
− | |function_syntax= | + | |permissions=true |
+ | |delay=0 | ||
+ | |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 14: | Line 16: | ||
} | } | ||
</source> | </source> | ||
− | |description=. | + | |description= Allows creators to set the major physics dynamic proprieties, replacing the values estimated from the linkset parts. Call osClearInertia to undo |
<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> | ||
Line 23: | Line 25: | ||
* Mass total mass of link set | * Mass total mass of link set | ||
* 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 | + | * 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 |
− | | | + | |additional_info=This function was added in 0.9.0.1}} |
− | }} | + | == See Also == |
+ | * [[osClearInertia]] | ||
+ | * [[osSetInertiaAsBox]] | ||
+ | * [[osSetInertiaAsSphere]] | ||
+ | * [[osSetInertiaAsCylinder]] |
Latest revision as of 19:01, 5 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 |