17 #ifndef AGX_STRONGINTERACTIONCONSTRAINT_H
18 #define AGX_STRONGINTERACTIONCONSTRAINT_H
#define AGX_DECLARE_POINTER_TYPES(type)
#define AGXSTREAM_DECLARE_SERIALIZABLE(T)
Use this in a Serializable class to add the required methods Important: Use full namespace in the dec...
#define AGXPHYSICS_EXPORT
Class for managing the rendering of geometries, shapes, rigid bodies, constraints etc.
The base class for a constraint.
Pointer to a entity instance of type Physics.RigidBody.
The rigid body class, combining a geometric model and a frame of reference.
StrongInteractionConstraint()
Default constructor used by serialization.
virtual agx::RigidBody * getRigidBody1() const override
virtual void writeMatrixData(agx::StrongInteraction::MatrixData rb1DiagonalBlock, agx::StrongInteraction::MatrixData rb2DiagonalBlock, agx::StrongInteraction::MatrixData offDiagonalBlock) override
Write data for dynamic bodies.
virtual void prepare() override
Prepares for solve.
virtual ~StrongInteractionConstraint()
Reference counted object, protected destructor.
agx::ConstraintRef m_constraint
virtual agx::RigidBody * getRigidBody2() const override
StrongInteractionConstraint(agx::Constraint *constraint)
Construct given constraint.
virtual void writeRhs(agx::Physics::RigidBodyPtr rb1, agx::Real *rb1Rhs, agx::Physics::RigidBodyPtr rb2, agx::Real *rb2Rhs, agx::Bool isRestingSolve) override
Write data to the right hand side, for dynamic bodies.
virtual void render(agxRender::RenderManager *mgr, float scale) override
Render the interaction.
Base class for a strong interaction concept where there interaction is defined in the mass matrix par...
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
std::valarray< agx::Real > RealValarray
For this module, vectors are defined using valarray.