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 | Protected Attributes | List of all members
sc::BallJointConstraint Class Reference

Connects the connectors with a ball joint. More...

#include <BallJointConstraint.h>

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

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)
 

Detailed Description

Connects the connectors with a ball joint.

Constructor & Destructor Documentation

BallJointConstraint::BallJointConstraint ( Connector *  connA,
Connector *  connB,
const Vec3 &  localAnchorA,
const Vec3 &  localAnchorB 
)
Parameters
connAFirst connector
connBSecond connector
localAnchorAAnchor point in connector A frame
localAnchorBAnchor point in connector B frame
BallJointConstraint::~BallJointConstraint ( )
virtual

Member Function Documentation

void BallJointConstraint::update ( )
virtual

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

Reimplemented from sc::Constraint.

Reimplemented in sc::LockConstraint.

Member Data Documentation

Vec3 sc::BallJointConstraint::m_localAnchorA
protected
Vec3 sc::BallJointConstraint::m_localAnchorB
protected

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