Template:LSL Function/physics materials

From Second Life Wiki
Jump to navigation Jump to search
#var value
p_mask_desc bitwise combination of DENSITY, FRICTION, RESTITUTION, and GRAVITY_MULTIPLIER and specifies which floats to actually apply
p_gravity_multiplier_desc range [-1.0, +28.0], default: 1.0
p_restitution_desc range [0.0, 1.0], default: [0.3, 0.9] [1]
p_friction_desc range [0.0, 255.0], default: [0.2, 0.9][1]
p_density_desc range [1.0, 22587.0] kg/m^3, default: 1000.0
header_footnote

The default values for friction and restitution depend upon the material type.

caveats
  • A collision between two objects with restitution 1.0 will still not be perfectly elastic due to damping in the physics engine.
history
physics_material_rows
mask Flags V Description
DENSITY 1 Indicates that density parameter is enabled and will override the previous value.
FRICTION 2 Indicates that friction parameter is enabled and will override the previous value.
RESTITUTION 4 Indicates that restitution parameter is enabled and will override the previous value.
GRAVITY_MULTIPLIER 8 Indicates that gravity_multiplier parameter is enabled and will override the previous value.