Template:LSL Function/physics materials: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
| Line 39: | 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. | ||
}} | }} | ||
{{#vardefine:header_footnote|{{#var:header_footnote}}{{PBR}} | |||
The default value for the {{LSLP|gravity_multiplier}} is 1.0, {{LSLP|density}} is 1000.0. The default values for {{LSLP|friction}} and {{LSLP|restitution}} depend upon the [[PRIM_MATERIAL|material type]].}} | |||
}}<noinclude> | }}<noinclude> | ||
| Line 56: | Line 59: | ||
{{VarPair|p_density_desc}} | {{VarPair|p_density_desc}} | ||
|- | |- | ||
{{ | {{VarPair|header_footnote}} | ||
|- | |- | ||
{{VarPair|caveats}} | {{VarPair|caveats}} | ||
|- | |||
{{VarPairTable|physics_material_rows}} | |||
|} | |} | ||
</noinclude> | </noinclude> | ||
Revision as of 15:07, 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 | ||||||||||||||||||||||||||||||||||||||||
| header_footnote |
The default value for the gravity_multiplier is 1.0, density is 1000.0. The default values for friction and restitution depend upon the material type. | ||||||||||||||||||||||||||||||||||||||||
| caveats |
| ||||||||||||||||||||||||||||||||||||||||
| physics_material_rows |
| ||||||||||||||||||||||||||||||||||||||||