Difference between revisions of "LlSetPhysicsMaterial"
Jump to navigation
Jump to search
Pedro Oval (talk | contribs) (Better something that nothing) |
Pedro Oval (talk | contribs) m (Category sort key) |
||
Line 9: | Line 9: | ||
* density must be between 1.0 and 22587.0 (in kg/m^3 -- see if you can figure out what 22587 represents) | * density must be between 1.0 and 22587.0 (in kg/m^3 -- see if you can figure out what 22587 represents) | ||
[[Category:LSL Physics]] | [[Category:LSL Physics|SetPhysicsMaterial]] | ||
[[Category:LSL Functions]] | [[Category:LSL Functions|SetPhysicsMaterial]] |
Revision as of 22:10, 19 January 2012
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)