15 #ifndef AGX_VIRTUALCONSTRAINTINERTIA_H 16 #define AGX_VIRTUALCONSTRAINTINERTIA_H 58 void setRigidBody1TranslationalInertia(
agx::Real translationalInertia);
64 void setRigidBody2TranslationalInertia(
agx::Real translationalInertia);
71 void setRigidBody1RotationalInertia(
agx::Real rotationalInertia);
78 void setRigidBody2RotationalInertia(
agx::Real rotationalInertia);
84 agx::Real getRigidBody1TranslationalInertia()
const;
91 agx::Real getRigidBody1RotationalInertia()
const;
97 agx::Real getRigidBody2TranslationalInertia()
const;
104 agx::Real getRigidBody2RotationalInertia()
const;
132 virtual void prepare()
override;
160 addedMassMatrix1.
set( 0, 0, 0, 0, 0, 0, 0, 0, 0 );
161 addedMassMatrix2.
set( 0, 0, 0, 0, 0, 0, 0, 0, 0 );
162 addedInertiaMatrix1.
set( 0, 0, 0, 0, 0, 0, 0, 0, 0 );
163 addedInertiaMatrix2.
set( 0, 0, 0, 0, 0, 0, 0, 0, 0 );
agx::ConstraintRef m_constraint
Base class for a strong interaction concept where there interaction is defined in the mass matrix par...
Transformed m_transformed
#define AGXPHYSICS_EXPORT
The base class for a constraint.
agx::Real m_rigidBody1TranslationalInertia
#define AGX_DECLARE_POINTER_TYPES(type)
agx::Real m_rigidBody2TranslationalInertia
Pointer to a entity instance of type Physics.RigidBody.
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
agx::Real m_rigidBody2RotationalInertia
This class will add a virtual inertia along or around the constraint axis (N-axis), which will affect the resulting rotational or translational acceleration on the affected rigid bodies.
The rigid body class, combining a geometric model and a frame of reference.
#define AGXSTREAM_DECLARE_SERIALIZABLE(T)
Use this in a Serializable class to add the required methods Important: Use full namespace in the dec...
agx::Real m_rigidBody1RotationalInertia
void set(T const *const ptr)