VirtualPhysics the realtime dynamics simulation library

vpMaterial Class Reference

Material properties of rigid bodies. More...

#include <vpMaterial.h>

List of all members.

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 vpMaterialGetDefaultMaterial (void)


Detailed Description

vpMaterial is a class to define material properties of rigid bodies.

Member Function Documentation

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.

Parameters:
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.


Generated on Wed Jun 11 23:11:49 2008 for VirtualPhysics by  doxygen 1.5.5