| MULTIBODY SIMULATION SOFTWARE - API documentation |
#include <CHcCollisionPair.h>

Public Member Functions | |
| ChCollisionPair () | |
| ChCollisionPair (chrono::geometry::ChGeometry *mgeo1, chrono::geometry::ChGeometry *mgeo2, const ChVector<> &mp1, const ChVector<> &mp2, const ChVector< float > &mnormal, float *mreaction_cache=0) | |
| ChCollisionPair (chrono::geometry::ChGeometry *mgeo1, chrono::geometry::ChGeometry *mgeo2) | |
| void | Set (chrono::geometry::ChGeometry *mgeo1, chrono::geometry::ChGeometry *mgeo2, const ChVector<> &mp1, const ChVector<> &mp2, const ChVector< float > &mnormal, float *mreaction_cache=0) |
| void | SwapGeometries () |
| void | CacheFetchSpeedSolutionFromManifold (float &mN, float &mU, float &mV) |
| void | CacheFetchPositionSolutionFromManifold (float &mN, float &mU, float &mV) |
| void | CacheStoreSpeedSolutionIntoManifold (const float mN, const float mU, const float mV) |
| void | CacheStorePositionSolutionIntoManifold (const float mN, const float mU, const float mV) |
Public Attributes | |
| chrono::geometry::ChGeometry * | geo1 |
| chrono::geometry::ChGeometry * | geo2 |
| ChVector | p1 |
| ChVector | p2 |
| ChVector< float > | normal |
| double | norm_dist |
| bool | just_intersection |
| float * | reactions_cache |
Class for storing information about a collision point.
| void chrono::collision::ChCollisionPair::CacheFetchPositionSolutionFromManifold | ( | float & | mN, |
| float & | mU, | ||
| float & | mV | ||
| ) |
Fetches normal and U,V 'positional' reactions, as previously stored in a persistent contact manifold maintained by the collision engine. If no cache, set as 0,0,0
| void chrono::collision::ChCollisionPair::CacheFetchSpeedSolutionFromManifold | ( | float & | mN, |
| float & | mU, | ||
| float & | mV | ||
| ) |
Fetches normal and U,V impulsive reactions, as previously stored in a persistent contact manifold maintained by the collision engine. If no cache, set as 0,0,0
| void chrono::collision::ChCollisionPair::CacheStorePositionSolutionIntoManifold | ( | const float | mN, |
| const float | mU, | ||
| const float | mV | ||
| ) |
Stores normal and U,V 'positional' reactions into a persistent contact manifold maintained by the collision engine (if any)
| void chrono::collision::ChCollisionPair::CacheStoreSpeedSolutionIntoManifold | ( | const float | mN, |
| const float | mU, | ||
| const float | mV | ||
| ) |
Stores normal and U,V reactions into a persistent contact manifold maintained by the collision engine (if any)
| void chrono::collision::ChCollisionPair::SwapGeometries | ( | ) |
Swap geometries, that is geo1 becomes geo2 and viceversa; normal and so on are updates as well.
CHRONO::ENGINE