PhysicsMaterialParam
Constants in the PhysicsMaterialParam flag set. These are flags and can be combined with bitwise OR.
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
| Constant | Type | Value | Description |
|---|---|---|---|
DENSITY | integer | 1 | Used 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³. |
FRICTION | integer | 2 | Used with llSetPhysicsMaterial to enable the friction override. The value must be between 0.0 and 255.0. |
GRAVITY_MULTIPLIER | integer | 8 | Used with llSetPhysicsMaterial to enable the gravity multiplier override. The value must be between -1.0 and +28.0. |
RESTITUTION | integer | 4 | Used with llSetPhysicsMaterial to enable the restitution (bounciness) value (must be between 0.0 and 1.0) which overrides the previous value. |
Used by
llSetPhysicsMaterialfunctionConfigures the physical characteristics of an object. The mask bitfield specifies which of the other parameters (gravity_multiplier, restitution, friction, or density) should be applied to the object.