Forgot? Join

Scripting

LSL Guide

Every script function this grid actually runs, read straight from the region software rather than copied from a wiki — including the wolf* functions that exist only here.

Functions · Constants

osSetInertiaAsBox

OSSL
void 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

TypeName
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