osSetInertiaAsBox
OSSLvoid osSetInertiaAsBox(float mass, vector boxSize, vector centerOfMass, rotation rot)
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 box of size boxSize, 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 |
| vector | boxSize |
| vector | centerOfMass |
| rotation | rot |
Energy
10
OpenSimulator extensions. Some are gated by threat level and a region may refuse them.
More in OSSL
string osDrawTranslationTransform(string drawList, float x, float y)
void osDropAttachment()
vector osGetDrawStringSize(string contentType, string text, string fontName, integer fontSize)
void osSetParcelMediaURL(string url)
void osParticleSystem(list rules)
integer osTeleportObject(key objectUUID, vector targetPos, rotation targetrotation, integer flags)
integer osSetTerrainHeight(integer x, integer y, float val)
vector osTemperature2sRGB(float dtemp)