Difference between revisions of "Template:LSL Function/physics materials"
Jump to navigation
Jump to search
m |
m |
||
Line 1: | Line 1: | ||
<noinclude>{{Multi-lang|category=LSL}}</noinclude>{{LSL Injection Test}}{{#if: | <noinclude>{{Multi-lang|category=LSL}}</noinclude>{{LSL Injection Test}}{{#if: | ||
{{#vardefine:material_mask|mask}} | |||
<!-- caveats & parameter descriptions copied from PRIM_PHYSICS_MATERIAL article --> | <!-- caveats & parameter descriptions copied from PRIM_PHYSICS_MATERIAL article --> | ||
{{#vardefine: | {{#vardefine:p_{{#var:material_mask}}_desc|bitwise combination of [[DENSITY]], [[FRICTION]], [[RESTITUTION]], and [[GRAVITY_MULTIPLIER]] and specifies which floats to actually apply}} | ||
{{#vardefine:p_gravity_multiplier_desc|range {{Interval|gte=-1.0|center=gravity_multiplier|lte=+28.0}}, default: 1.0}} | {{#vardefine:p_gravity_multiplier_desc|range {{Interval|gte=-1.0|center=gravity_multiplier|lte=+28.0}}, default: 1.0}} | ||
{{#vardefine:p_restitution_desc|range {{Interval|gte=0.0|center=restitution|lte=1.0}}}} | {{#vardefine:p_restitution_desc|range {{Interval|gte=0.0|center=restitution|lte=1.0}}}} | ||
Line 8: | Line 10: | ||
{{#vardefine:p_density_desc|range {{Interval|gte=1.0|center=density|lte=22587.0}} [[llGetMassMKS|kg]]/m^3, default: 1000.0}} | {{#vardefine:p_density_desc|range {{Interval|gte=1.0|center=density|lte=22587.0}} [[llGetMassMKS|kg]]/m^3, default: 1000.0}} | ||
{{#vardefine: | {{#vardefine:p_{{#var:material_mask}}_hover|bitwise combination of DENSITY, FRICTION, RESTITUTION, and GRAVITY_MULTIPLIER and specifies which floats to actually apply}} | ||
{{#vardefine:p_gravity_multiplier_hover|range -1.0 to +28.0, default: 1.0}} | {{#vardefine:p_gravity_multiplier_hover|range -1.0 to +28.0, default: 1.0}} | ||
{{#vardefine:p_restitution_hover|range 0.0 to 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)}} | {{#vardefine:p_restitution_hover|range 0.0 to 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)}} | ||
Line 15: | Line 17: | ||
{{#vardefine:physics_material_rows| | {{#vardefine:physics_material_rows| | ||
!{{!}} {{LSLPT| | !{{!}} {{LSLPT|{{#var:material_mask}}}} Flags | ||
! title="Value" {{!}} V | ! title="Value" {{!}} V | ||
! colspan="6" {{!}} Description | ! colspan="6" {{!}} Description | ||
Line 54: | Line 56: | ||
! value | ! value | ||
|- | |- | ||
{{VarPair| | {{VarPair|p_{{#var:material_mask}}_desc}} | ||
|- | |- | ||
{{VarPair|p_gravity_multiplier_desc}} | {{VarPair|p_gravity_multiplier_desc}} |
Revision as of 18:09, 22 August 2012
#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] | ||||||||||||||||||||||||||||||||||||||||
p_friction_desc | range [0.0, 255.0] | ||||||||||||||||||||||||||||||||||||||||
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 |
| ||||||||||||||||||||||||||||||||||||||||
history |
| ||||||||||||||||||||||||||||||||||||||||
physics_material_rows |
|