Cheetah Software
1.0
|
#include <Collision.h>
Public Member Functions | |
Collision (const T &mu, const T &resti) | |
virtual | ~Collision () |
virtual bool | ContactDetection (const Vec3< T > &cp_pos, T &penetration, Mat3< T > &cp_frame)=0 |
const T & | getFrictionCoeff () |
const T & | getRestitutionCoeff () |
Protected Attributes | |
T | _mu |
T | _restitution_coeff |
Abstract Collision Class
Definition at line 17 of file Collision.h.
Construct a new collision
mu | : coefficient of friction |
resti | : coefficient of restitution (v_rebound / v_impact) |
Definition at line 24 of file Collision.h.
Definition at line 25 of file Collision.h.
References Collision< T >::ContactDetection().
|
pure virtual |
virtual function for contact detection
cp_pos | : contact point in the global frame |
Implemented in CollisionBox< T >, CollisionMesh< T >, and CollisionPlane< T >.
|
inline |
|
inline |
|
protected |
Definition at line 42 of file Collision.h.
|
protected |
Definition at line 42 of file Collision.h.