Strong Coupling Core  0.1.0
Library for solving a system of strong coupled physical subsystems.
 All Classes Namespaces Files Functions Variables Macros Pages
Public Member Functions | List of all members
sc::LockConstraint Class Reference

Locks all 6 degrees of freedom between two connectors. More...

#include <LockConstraint.h>

Inheritance diagram for sc::LockConstraint:
sc::BallJointConstraint sc::Constraint

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)
 
- Public Member Functions inherited from sc::BallJointConstraint
 BallJointConstraint (Connector *connA, Connector *connB, const Vec3 &localAnchorA, const Vec3 &localAnchorB)
 
virtual ~BallJointConstraint ()
 
- 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 ()
 

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)
 
- Protected Attributes inherited from sc::BallJointConstraint
Vec3 m_localAnchorA
 
Vec3 m_localAnchorB
 
- Protected Attributes inherited from sc::Constraint
std::vector< Equation * > m_equations
 
Connector * m_connA
 
Connector * m_connB
 

Detailed Description

Locks all 6 degrees of freedom between two connectors.

Constructor & Destructor Documentation

sc::LockConstraint::LockConstraint ( Connector *  connA,
Connector *  connB 
)
LockConstraint::LockConstraint ( Connector *  connA,
Connector *  connB,
const Vec3 &  localAnchorA,
const Vec3 &  localAnchorB,
const Quat &  localOrientationA,
const Quat &  localOrientationB 
)
LockConstraint::~LockConstraint ( )
virtual

Member Function Documentation

void sc::LockConstraint::init ( Connector *  connA,
Connector *  connB,
const Vec3 &  localAnchorA,
const Vec3 &  localAnchorB,
const Quat &  localOrientationA,
const Quat &  localOrientationB 
)
void LockConstraint::update ( )
virtual

Update equations and violations. Should be called whenever the connector states changed.

Reimplemented from sc::BallJointConstraint.


The documentation for this class was generated from the following files: