OsClearInertia

From OpenSimulator

(Difference between revisions)
Jump to: navigation, search
Line 1: Line 1:
 
{{osslfunc
 
{{osslfunc
 
|threat_level=None
 
|threat_level=None
|function_syntax=
+
|function_syntax=osClearInertia()
 
|csharp_syntax=
 
|csharp_syntax=
 
|ossl_example=<source lang="lsl">
 
|ossl_example=<source lang="lsl">
Line 10: Line 10:
 
     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

Revision as of 15:46, 9 August 2017

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 None
Permissions No permissions specified
Extra Delay No function delay specified
Example(s)
// Example of osClearInertia
 
default
{
    state_entry()
    {
        ...
        osClearInertia();
        ...
    }
}
Personal tools
General
About This Wiki