Difference between revisions of "Template:LSL Function/physics materials"

From Second Life Wiki
Jump to navigation Jump to search
m
m
Line 16: Line 16:
{{#vardefine:physics_material_rows|
{{#vardefine:physics_material_rows|
!{{!}} {{LSLPT|material_bits}} Flags
!{{!}} {{LSLPT|material_bits}} Flags
! title="value" {{!}} V
! title="Value" {{!}} V
! colspan="6" {{!}} Description
! colspan="6" {{!}} Description
{{!}}-
{{!}}-

Revision as of 14:58, 8 August 2012

#var value
p_material_bits_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]
p_restitution_desc range [0.0, 1.0]
p_friction_desc range [0.0, 255.0]
p_density_desc range [1.0, 22587.0] kg/m^3
physics_material_rows
material_bits Flags V Description
DENSITY 1 Indicates that density parameter is enabled
FRICTION 2 Indicates that friction parameter is enabled
RESTITUTION 4 Indicates that restitution parameter is enabled
GRAVITY_MULTIPLIER 8 Indicates that gravity_multiplier parameter is enabled
caveats
  • A collision between two objects with restitution 1.0 will still not be perfectly elastic due to damping in the physics engine.