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

llSetPhysicsMaterial

LSL
void llSetPhysicsMaterial(integer material_bits, float material_gravity_modifier, float material_restitution, float material_friction, float material_density)

Sets the selected parameters of the object's physics behavior.\ MaterialBits is a bitmask specifying which of the parameters in the other arguments should be applied to the object. GravityMultiplier, Restitution, Friction, and Density are the possible parameters to manipulate.

Parameters

TypeName
integer material_bits
float material_gravity_modifier
float material_restitution
float material_friction
float material_density
Energy 10

The Linden Scripting Library — what every SL-compatible grid provides.

More in LSL