#include <Defines.h>
Public Member Functions | |
Material (real h, real f, real b, real d) | |
Material () | |
Public Attributes | |
real | hardness |
real | friction |
real | bounciness |
real | density |
Definition at line 132 of file Defines.h.
|
Definition at line 134 of file Defines.h. References bounciness, density, friction, and hardness. |
|
Definition at line 147 of file Defines.h. References bounciness, density, friction, and hardness. |
|
Bounciness (i.e. restitution) determines how elastic the collisions will be between this Material and another. In other words, the more bounciness, the farther the Solids will bounce when they collide (and, in real life, the less energy is lost due to heat and sound). This must be between 0 and 1. Definition at line 167 of file Defines.h. Referenced by Material(). |
|
Density combined with the volume of a Solid's shapes determine the Solid's mass. This must be >= 0. Definition at line 171 of file Defines.h. Referenced by opal::ODESolid::addShape(), Material(), and opal::ODESolid::setStatic(). |
|
Simple friction constant. This must be between 0 and 1.
Definition at line 160 of file Defines.h. Referenced by Material(). |
|
Determines how far Solids can interpenetrate. This must be between 0 and 1. Definition at line 157 of file Defines.h. Referenced by Material(). |