LlSetPhysicsMaterial

From Second Life Wiki
Revision as of 22:10, 19 January 2012 by Pedro Oval (talk | contribs) (Category sort key)
Jump to navigation Jump to search

NOTE: This article is a stub. Content taken from Release Notes/Second Life Server/11#11.09.23.241511

void llSetPhysicsMaterial( integer material_bits, float gravity_multiplier, float restitution, float friction, float density )

  • material_bits is a bitwise combination of DENSITY, FRICTION, RESTITUTION, and GRAVITY_MULTIPLIER and specifies which floats to actually apply
  • gravity_multiplier must be between -1.0 and +28.0
  • restitution must be between 0.0 and 1.0 (note, a collision between two objects with restitution 1.0 will still not be perfectly elastic due to damping in the physics engine)
  • friction must be between 0.0 and 255.0
  • density must be between 1.0 and 22587.0 (in kg/m^3 -- see if you can figure out what 22587 represents)