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
float osAngleBetween(vector a, vector b)
void osCauseDamage(key avatar, float damage)
integer osStringEndsWith(string src, string value, integer ignorecase)
void osNpcSetProfileImage(key npc, string image)
void osTriggerSoundLimited(integer linknum, string sound, float volume, vector top_north_east, vector bottom_south_west)
void osLoopSound(integer linknum, string sound, float volume)
integer osListAsInteger(list src, integer index)
list osGetLinkInventoryNames(integer linkNumber, integer type)