Strong Coupling Core
0.1.0
Library for solving a system of strong coupled physical subsystems.
|
Locks all 6 degrees of freedom between two connectors. More...
#include <LockConstraint.h>
Public Member Functions | |
LockConstraint (Connector *connA, Connector *connB) | |
LockConstraint (Connector *connA, Connector *connB, const Vec3 &localAnchorA, const Vec3 &localAnchorB, const Quat &localOrientationA, const Quat &localOrientationB) | |
virtual | ~LockConstraint () |
void | update () |
Update equations and violations. Should be called whenever the connector states changed. More... | |
void | init (Connector *connA, Connector *connB, const Vec3 &localAnchorA, const Vec3 &localAnchorB, const Quat &localOrientationA, const Quat &localOrientationB) |
![]() | |
BallJointConstraint (Connector *connA, Connector *connB, const Vec3 &localAnchorA, const Vec3 &localAnchorB) | |
virtual | ~BallJointConstraint () |
![]() | |
Constraint (Connector *, Connector *) | |
virtual | ~Constraint () |
int | getNumEquations () |
Get number of equations in this constraint. More... | |
Equation * | getEquation (int i) |
Get one of the equations. More... | |
Connector * | getConnA () |
Get connectors. More... | |
Connector * | getConnB () |
Additional Inherited Members | |
![]() | |
void * | userData |
Arbitrary data from the user. More... | |
![]() | |
void | addEquation (Equation *eq) |
![]() | |
Vec3 | m_localAnchorA |
Vec3 | m_localAnchorB |
![]() | |
std::vector< Equation * > | m_equations |
Connector * | m_connA |
Connector * | m_connB |
Locks all 6 degrees of freedom between two connectors.
LockConstraint::LockConstraint | ( | Connector * | connA, |
Connector * | connB, | ||
const Vec3 & | localAnchorA, | ||
const Vec3 & | localAnchorB, | ||
const Quat & | localOrientationA, | ||
const Quat & | localOrientationB | ||
) |
|
virtual |
void sc::LockConstraint::init | ( | Connector * | connA, |
Connector * | connB, | ||
const Vec3 & | localAnchorA, | ||
const Vec3 & | localAnchorB, | ||
const Quat & | localOrientationA, | ||
const Quat & | localOrientationB | ||
) |
|
virtual |
Update equations and violations. Should be called whenever the connector states changed.
Reimplemented from sc::BallJointConstraint.