#define AGXPHYSICS_EXPORT
Constraint body data used with GenericElementaryConstraint containing the per body Jacobian data.
GenericConstraintBodyData()
Construct given number of rows in the elementary constraint.
void addJacobian(UInt row, const Vec3 &spatial, const Vec3 &rotational)
Add Jacobian for given row as spatial and rotation vectors.
const Vec3Vector & getJacobian() const
void reset(UInt numRows)
Resets all vectors to (0, 0, 0).
void setJacobian(UInt row, const Vec3 &spatial, const Vec3 &rotational)
Assign Jacobian for given row as spatial and rotation vectors.
Constraint data used with GenericElementaryConstraint containing data such as; constraint violation,...
void prepare(UInt numRows, const ConstraintRigidBodyContainer &bodies)
Resets all values to default.
const RealVector & getViolation() const
GenericConstraintBodyData * getBodyData(const RigidBody *rb) const
Access body related data, such as the Jacobian, for a given body rb.
GenericConstraintBodyData * getBodyDataAt(size_t index) const
Access body related data, such as the Jacobian, for a given body index index.
void setViolation(UInt row, Real violation)
Assign violation for given row in the elementary constraint.
void setVelocity(UInt row, Real velocity)
Assign velocity for given row in the elementary constraint.
const BoundsVector & getBounds() const
void setIsImpacting(Bool isImpacting)
Assign impacting state of the elementary constraint.
Bool getIsImpacting() const
void setBound(UInt row, RangeReal range)
Assign bound for given row in the elementary constraint.
GenericConstraintData()
Construct given number of rows in the elementary constraint.
const RealVector & getVelocity() const
The rigid body class, combining a geometric model and a frame of reference.
The agx namespace contains the dynamics/math part of the AGX Dynamics API.