Difference between revisions of "Template:LSL Function/physics materials"
Jump to navigation
Jump to search
m (Created page with "<!-- caveats & parameter descriptions imported from PRIM_PHYSICS_MATERIAL article --> {{#vardefine:p_material_bits_desc|bitwise combination of DENSITY, FRICTION, [[RESTIT…") |
m |
||
Line 1: | Line 1: | ||
<noinclude>{{Multi-lang|category=LSL}}</noinclude>{{LSL Injection Test}}{{#if: | |||
<!-- caveats & parameter descriptions imported from PRIM_PHYSICS_MATERIAL article --> | <!-- caveats & parameter descriptions imported from PRIM_PHYSICS_MATERIAL article --> | ||
{{#vardefine:p_material_bits_desc|bitwise combination of [[DENSITY]], [[FRICTION]], [[RESTITUTION]], and [[GRAVITY_MULTIPLIER]] and specifies which floats to actually apply}} | {{#vardefine:p_material_bits_desc|bitwise combination of [[DENSITY]], [[FRICTION]], [[RESTITUTION]], and [[GRAVITY_MULTIPLIER]] and specifies which floats to actually apply}} | ||
Line 37: | Line 39: | ||
* A collision between two objects with {{LSLP|restitution}} 1.0 will still not be perfectly elastic due to damping in the physics engine. | * A collision between two objects with {{LSLP|restitution}} 1.0 will still not be perfectly elastic due to damping in the physics engine. | ||
}} | }} | ||
}}<noinclude> | |||
{| {{Prettytable}} | |||
|-{{Hl2}} | |||
! #var | |||
! value | |||
|- | |||
{{VarPair|p_material_bits_desc}} | |||
|- | |||
{{VarPair|p_gravity_multiplier_desc}} | |||
|- | |||
{{VarPair|p_restitution_desc}} | |||
|- | |||
{{VarPair|p_friction_desc}} | |||
|- | |||
{{VarPair|p_density_desc}} | |||
|- | |||
{{VarPairTable|physics_material_rows}} | |||
|- | |||
{{VarPair|caveats}} | |||
|} | |||
</noinclude> |
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 |
| ||||||||||||||||||||||||||||||||||||||||
caveats |
|