FCL
0.6.0
Flexible Collision Library
|
Contact information returned by collision. More...
#include <contact.h>
Public Member Functions | |
Contact (const CollisionGeometry< S > *o1_, const CollisionGeometry< S > *o2_, int b1_, int b2_) | |
Contact (const CollisionGeometry< S > *o1_, const CollisionGeometry< S > *o2_, int b1_, int b2_, const Vector3< S > &pos_, const Vector3< S > &normal_, S depth_) | |
bool | operator< (const Contact &other) const |
Public Attributes | |
const CollisionGeometry< S > * | o1 |
collision object 1 | |
const CollisionGeometry< S > * | o2 |
collision object 2 | |
int | b1 |
contact primitive in object 1 if object 1 is mesh or point cloud, it is the triangle or point id if object 1 is geometry shape, it is NONE (-1), if object 1 is octree, it is the id of the cell | |
int | b2 |
contact primitive in object 2 if object 2 is mesh or point cloud, it is the triangle or point id if object 2 is geometry shape, it is NONE (-1), if object 2 is octree, it is the id of the cell | |
Vector3< S > | normal |
contact normal, pointing from o1 to o2 | |
Vector3< S > | pos |
contact position, in world space | |
S | penetration_depth |
penetration depth | |
Static Public Attributes | |
static const int | NONE = -1 |
invalid contact primitive information | |
Contact information returned by collision.