|
Strong Coupling Core
0.1.0
Library for solving a system of strong coupled physical subsystems.
|
Connects the connectors with a ball joint. More...
#include <BallJointConstraint.h>
Public Member Functions | |
| BallJointConstraint (Connector *connA, Connector *connB, const Vec3 &localAnchorA, const Vec3 &localAnchorB) | |
| virtual | ~BallJointConstraint () |
| virtual void | update () |
| Update equations and violations. Should be called whenever the connector states changed. More... | |
Public Member Functions inherited from sc::Constraint | |
| 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 () |
Protected Attributes | |
| Vec3 | m_localAnchorA |
| Vec3 | m_localAnchorB |
Protected Attributes inherited from sc::Constraint | |
| std::vector< Equation * > | m_equations |
| Connector * | m_connA |
| Connector * | m_connB |
Additional Inherited Members | |
Public Attributes inherited from sc::Constraint | |
| void * | userData |
| Arbitrary data from the user. More... | |
Protected Member Functions inherited from sc::Constraint | |
| void | addEquation (Equation *eq) |
Connects the connectors with a ball joint.
| BallJointConstraint::BallJointConstraint | ( | Connector * | connA, |
| Connector * | connB, | ||
| const Vec3 & | localAnchorA, | ||
| const Vec3 & | localAnchorB | ||
| ) |
| connA | First connector |
| connB | Second connector |
| localAnchorA | Anchor point in connector A frame |
| localAnchorB | Anchor point in connector B frame |
|
virtual |
|
virtual |
Update equations and violations. Should be called whenever the connector states changed.
Reimplemented from sc::Constraint.
Reimplemented in sc::LockConstraint.
|
protected |
|
protected |
1.8.6