Skip to content
lsl.devlsl.devLSL Dev

PhysicsMaterialParam

Constants in the PhysicsMaterialParam flag set. These are flags and can be combined with bitwise OR.

All constant groups

At a glance, from the LSL definitions
integer DENSITY = 0x0001;  // Used with llSetPhysicsMaterial to indicate that the density parameter is enabled (which overrides the previous value).integer FRICTION = 0x0002;  // Used with llSetPhysicsMaterial to enable the friction override.integer GRAVITY_MULTIPLIER = 0x0008;  // Used with llSetPhysicsMaterial to enable the gravity multiplier override.integer RESTITUTION = 0x0004;  // Used with llSetPhysicsMaterial to enable the restitution (bounciness) value (must be between 0.0 and 1.0) which overrides the previous value.

Constants

ConstantTypeValueDescription
DENSITYinteger1Used with llSetPhysicsMaterial to indicate that the density parameter is enabled (which overrides the previous value). Must be between 1.0 and 22587.0 kg/m³.
FRICTIONinteger2Used with llSetPhysicsMaterial to enable the friction override. The value must be between 0.0 and 255.0.
GRAVITY_MULTIPLIERinteger8Used with llSetPhysicsMaterial to enable the gravity multiplier override. The value must be between -1.0 and +28.0.
RESTITUTIONinteger4Used with llSetPhysicsMaterial to enable the restitution (bounciness) value (must be between 0.0 and 1.0) which overrides the previous value.

Used by