AGX Dynamics 2.42.2.1
Loading...
Searching...
No Matches
ConstraintImplementation.h File Reference

Go to the source code of this file.

Classes

class  agx::BlockStructure
 
class  agx::ConstraintImplementation::ConstrainedBodiesState::BodiesInfo
 Info with number of dynamic and non-static body counters. More...
 
class  agx::ConstraintImplementation::BodyView
 Interface to the bodies, either user or solver, since these bodies can differ when e.g., a body is merged. More...
 
class  agx::ConstraintImplementation::ConstrainedBodiesState
 Object that holds the state seen from the user and from the solver. More...
 
class  agx::ConstraintImplementation
 
class  agx::HighLevelConstraintImplementation
 
class  agx::ConstraintImplementation::SolverBodyView
 

Namespaces

namespace  agx
 The agx namespace contains the dynamics/math part of the AGX Dynamics API.
 

Macros

#define CONSTRAINT_SUCCESS(success)
 
#define CONSTRAINT_SUCCESS_RETURN_BOOL(success)
 
#define DEFAULT_COMPLIANCE   1.0E-8
 

Typedefs

typedef Vector< RigidBody * > agx::ConstraintRigidBodyContainer
 
typedef std::pair< Real, Real > agx::RealPair
 

Functions

AGXPHYSICS_EXPORT void agx::addSecondaryConstraints1DOF (agx::HighLevelConstraintImplementation *constraint, agx::Angle *angle)
 Add secondary controllers with default name to the constraint.
 
AGXPHYSICS_EXPORT void agx::addSecondaryConstraints2DOF (agx::HighLevelConstraintImplementation *constraint, agx::SeparationAngle *sepAngle, agx::RotationalAngle *rotAngle)
 Add secondary controllers with default name to the constraint.
 
Real agx::getAngle (const Vec3 &a, const Vec3 &b, const Vec3 &c)
 a and b should be orthogonal
 

Macro Definition Documentation

◆ CONSTRAINT_SUCCESS

#define CONSTRAINT_SUCCESS (   success)
Value:
if ( !(success) ) { \
LOGGER_WARNING() << "Unable to create constraint. Constraint cleared." << std::endl << LOGGER_END(); \
m_bodies.clear(); \
m_localState.remove( VALID ); \
return; \
}
#define LOGGER_END()
Definition: Logger.h:26

Definition at line 39 of file ConstraintImplementation.h.

◆ CONSTRAINT_SUCCESS_RETURN_BOOL

#define CONSTRAINT_SUCCESS_RETURN_BOOL (   success)
Value:
if ( !(success) ) { \
LOGGER_WARNING() << "Unable to create constraint. Constraint cleared." << std::endl << LOGGER_END(); \
m_bodies.clear(); \
m_localState.remove( VALID ); \
return false; \
}

Definition at line 47 of file ConstraintImplementation.h.

◆ DEFAULT_COMPLIANCE

#define DEFAULT_COMPLIANCE   1.0E-8

Definition at line 37 of file ConstraintImplementation.h.