OsSetInertiaAsCylinder

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=osSetInertiaAsCylinder(float mass,  float radius, float lenght, vector centerOfMass, rotation rot)
 
|csharp_syntax=
 
|csharp_syntax=
 
|ossl_example=<source lang="lsl">
 
|ossl_example=<source lang="lsl">
Line 10: Line 10:
 
     state_entry()
 
     state_entry()
 
     {
 
     {
 +
        ...
 +
        osSetInertiaAsCylinder(20.0,  0.5, 2.0, <-0.5,0.5,1.0>, ZERO_ROTATION);
 
         ...
 
         ...
 
     }
 
     }

Revision as of 16:13, 9 August 2017

osSetInertiaAsCylinder(float mass, float radius, float lenght, vector centerOfMass, rotation rot)
...

Caution ! Only supported by ubOde for now

Threat Level None
Permissions No permissions specified
Extra Delay No function delay specified
Example(s)
// Example of osSetInertiaAsCylinder
 
default
{
    state_entry()
    {
        ...
        osSetInertiaAsCylinder(20.0,  0.5, 2.0, <-0.5,0.5,1.0>, ZERO_ROTATION);
        ...
    }
}
Personal tools
General
About This Wiki