#include <vpMaterial.h>
Public Member Functions | |
| scalar | GetDensity (void) const |
| void | SetDensity (scalar) |
| scalar | GetRestitution (void) const |
| void | SetRestitution (scalar e) |
| scalar | GetStaticFriction (void) const |
| void | SetStaticFriction (scalar) |
| scalar | GetDynamicFriction (void) const |
| void | SetDynamicFriction (scalar) |
| scalar | GetSpinningFriction (void) const |
| void | SetSpinningFriction (scalar) |
Static Public Member Functions | |
| static vpMaterial * | GetDefaultMaterial (void) |
| VP_INLINE scalar vpMaterial::GetDensity | ( | void | ) | const |
get a density of the material.
| VP_INLINE void vpMaterial::SetDensity | ( | scalar | d | ) |
set a density of the material.
| VP_INLINE scalar vpMaterial::GetRestitution | ( | void | ) | const |
get a restitution parameter of the material.
| VP_INLINE void vpMaterial::SetRestitution | ( | scalar | e | ) |
set a restitution parameter of the material.
| e | If 1, perfectly elastic. If 0, perfectly plastic. |
| VP_INLINE scalar vpMaterial::GetStaticFriction | ( | void | ) | const |
get a static friction parameter of the material.
| VP_INLINE void vpMaterial::SetStaticFriction | ( | scalar | f | ) |
set a static friction parameter of the material.
| VP_INLINE scalar vpMaterial::GetDynamicFriction | ( | void | ) | const |
get a dynamic friction parameter of the material.
| VP_INLINE void vpMaterial::SetDynamicFriction | ( | scalar | f | ) |
set a dynamic friction parameter of the material.
| VP_INLINE scalar vpMaterial::GetSpinningFriction | ( | void | ) | const |
get a spinning friction parameter of the material.
| VP_INLINE void vpMaterial::SetSpinningFriction | ( | scalar | f | ) |
set a spinning friction parameter of the material.
| static vpMaterial* vpMaterial::GetDefaultMaterial | ( | void | ) | [static] |
get a default material used for bodies which do not have their own materials.
1.5.5