OsClearInertia

From OpenSimulator

(Difference between revisions)
Jump to: navigation, search
(5 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=osClearInertia()
 
|csharp_syntax=
 
|csharp_syntax=
 
|ossl_example=<source lang="lsl">
 
|ossl_example=<source lang="lsl">
Line 10: Line 12:
 
     state_entry()
 
     state_entry()
 
     {
 
     {
 +
        ...
 +
        osClearInertia();
 
         ...
 
         ...
 
     }
 
     }
 
}
 
}
 
</source>
 
</source>
|description=...
+
|description= clears the effect of osSetInertia* functions. Link set total mass, center of mass and inertia will be the values estimated by default from the link set parts.
 
<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}}
}}
+
'''See Also'''
 +
* [[osSetInertia]]
 +
* [[osSetInertiaAsBox]]
 +
* [[osSetInertiaAsSphere]]
 +
* [[osSetInertiaAsCylinder]]

Revision as of 10:03, 7 December 2018

osClearInertia()
clears the effect of osSetInertia* functions. Link set total mass, center of mass and inertia will be the values estimated by default from the link set parts.

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 osClearInertia
 
default
{
    state_entry()
    {
        ...
        osClearInertia();
        ...
    }
}
Notes
This function was added in 0.9.0.1


See Also

Personal tools
General
About This Wiki