opal::Material Struct Reference

#include <Defines.h>

List of all members.

Public Member Functions

 Material (real h, real f, real b, real d)
 Material ()

Public Attributes

real hardness
real friction
real bounciness
real density


Detailed Description

Data structure describing material properties. These properties determine the collision response when two Solids collide.

Definition at line 132 of file Defines.h.


Constructor & Destructor Documentation

opal::Material::Material real  h,
real  f,
real  b,
real  d
[inline]
 

Definition at line 134 of file Defines.h.

References bounciness, density, friction, and hardness.

opal::Material::Material  )  [inline]
 

Definition at line 147 of file Defines.h.

References bounciness, density, friction, and hardness.


Member Data Documentation

real opal::Material::bounciness
 

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().

real opal::Material::density
 

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().

real opal::Material::friction
 

Simple friction constant. This must be between 0 and 1.

Definition at line 160 of file Defines.h.

Referenced by Material().

real opal::Material::hardness
 

Determines how far Solids can interpenetrate. This must be between 0 and 1.

Definition at line 157 of file Defines.h.

Referenced by Material().


The documentation for this struct was generated from the following file:
Generated on Tue May 16 17:49:55 2006 for OPAL by  doxygen 1.4.6-NO