osSetInertiaAsCylinder
OSSLvoid osSetInertiaAsCylinder(float mass, float radius, float length, vector centerOfMass, rotation lslrot)
Allows creators to set the link set total mass, center of mass and moment of inertia. Moment of inertia will be the one of a cylinder of radius and length, placed at the center of mass and rotated by rot in the root prim local frame. Call osClearInertia to undo.
Parameters
| Type | Name |
|---|---|
| float | mass |
| float | radius |
| float | length |
| vector | centerOfMass |
| rotation | lslrot |
Energy
10
OpenSimulator extensions. Some are gated by threat level and a region may refuse them.
More in OSSL
void osMessageObject(key objectUUID, string message)
void osResetAllScripts(integer AllLinkset)
key osAgentSaveAppearance(key agentId, string notecard, integer includeHuds)
void osSetInertiaAsBox(float mass, vector boxSize, vector centerOfMass, rotation rot)
list osGetParcelDetails(key id, list details)
string osSetDynamicTextureData(string dynamicID, string contentType, string data, string extraParams, integer timer)
string osUnixTimeToTimestamp(integer time)
void osSetInertiaAsSphere(float mass, float radius, vector centerOfMass)