23 class GenericConstraintComplianceMatrix;
24 class GenericConstraintImplementation;
110 virtual
void removeNotification() final override;
112 virtual
void onAddNotification() = 0;
113 virtual
void onRemoveNotification() = 0;
115 virtual
bool onPreSolve() = 0;
116 virtual
void onPostSolve() = 0;
121 int getNumDOF() const override;
122 void render( class
agxRender::RenderManager* manager,
float scale ) const override;
#define AGXPHYSICS_EXPORT
Simulation is a class that bridges the collision space agxCollide::Space and the dynamic simulation s...
The base class for a constraint.
Compliance matrix data containing the lower triangle (including the diagonal) of the compliance matri...
void setSupportComplianceMatrix(Bool enable, Bool isStaticSize=false)
Enable/disable updateComplianceMatrix callback with write access to the elements in the compliance ma...
Bool add(RigidBody *rb)
Register rigid body part of this many-body constraint.
GenericConstraintComplianceMatrix * getComplianceMatrix() const
If this constraint active rows doesn't vary and isStaticSize = true has been flagged when enabling su...
virtual void addNotification() final override
Called when added to a simulation.
Bool setRigidBodies(RigidBody *rb1, RigidBody *rb2)
Assign/update rigid bodies of this constraint.
static void onCleanup(const agxSDK::Simulation *simulation)
static void onPreSolveCallback(const agxSDK::Simulation *simulation)
Bool removeChild(Constraint *constraint)
Remove child constraint.
void removeAllBodies()
Removes all bodies previously added.
Bool remove(RigidBody *rb)
Remove rigid body from this many-body constraint.
static void onPostSolveCallback(const agxSDK::Simulation *simulation)
virtual ~IGenericConstraint()
Bool addChild(Constraint *constraint)
Add child constraint (binary or many-body).
void removeAllChildren()
Removes all child constraints previously added.
The rigid body class, combining a geometric model and a frame of reference.
Namespace containing classes for handling debug rendering of collision geometries,...
The agx namespace contains the dynamics/math part of the AGX Dynamics API.