KrisLibrary
1.0.0
|
A single contact point, i.e. a position, normal, and friction coefficient. More...
#include <Contact.h>
Public Member Functions | |
Real | frictionConeHalfAngle () const |
void | setfrictionConeHalfAngle (Real phi) |
bool | isValidForce (const Vector3 &f) const |
Returns true if the force lies within the friction cone. | |
Real | minFriction (const Vector3 &f) const |
void | quadraticForm (Matrix3 &A, Vector3 &b, Real &c) const |
Returns the quadratic form of the FC constraint f'*A*f + b*f + c >= 0. | |
Public Attributes | |
Vector3 | x |
Vector3 | n |
Real | kFriction |
A single contact point, i.e. a position, normal, and friction coefficient.
Real ContactPoint::minFriction | ( | const Vector3 & | f | ) | const |
Returns the min friction coefficient value required for f to be produced (for normal held constant). The result is negative for invalid forces.
References Math::dot().