174 void calculateWorkFromExternalForces( const
agx::Physics::RigidBodyData& rigidBody );
178 void calculateWorkFromBinaryConstraints( const
agx::Physics::BinaryConstraintData& binaryConstraint,
179 const
agx::Physics::ConstraintRowData& binaryConstraintRow,
181 const
agx::Physics::RigidBodyData& rigidBody );
185 void calculateWorkFromManyBodyConstraints( const
agx::Physics::ManyBodyConstraintData& manyBodyConstraint,
186 const
agx::Physics::ConstraintRowData& manyBodyConstraintRow,
188 const
agx::Physics::RigidBodyData& rigidBody );
230 : potential( initValue ), dissipation( initValue )
260 virtual ~UpdateListener();
285 void calculateEnergyForElementaryConstraint(
agx::Real& potential,
agx::Real& dissipation,
288 const agx::Physics::ConstraintRowData& binaryConstraintRow,
291 const agx::Physics::RigidBodyData& rigidBody );
293 void calculateWorkOnBody(
agx::Real& potential,
agx::Real& dissipation,
const EnergyManager::RigidBodyData& rbData,
300 RigidBodyDataContainer m_rbData;
301 EnergyChangeBodyContainer m_energyChangeBodies;
302 EnergyChangeConstraintContainer m_energyChangeConstraints;
303 EnergyChangeScContainer m_energyChangeSc;
305 RigidBodyConstRefVector m_rigidBodies;
306 ConstraintConstRefVector m_constraints;
309 UpdateListenerRef m_updateListener;
AGXTERRAIN_EXPORT void clear()
Derive from this class to implement a listener for simulation step events.
Elementary constraint base class with interface and global constraint functionality.
Jacobian6DOFElementT< Vec3 > Jacobian6DOFElement
Keeps track of the energy flow in the system.
#define AGXPHYSICS_EXPORT
The base class for a constraint.
#define AGX_DECLARE_POINTER_TYPES(type)
Type-specific Array used for fast access into the data held by a Buffer.
Base class providing referencing counted objects.
This class is a combined container which has the find complexity of a HashTable, deterministic iterat...
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
Contains classes for low level data storage for AGX.
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...
This class is an abstract base class for all classes that can be stored and retrieved from an Archive...
Simulation is a class that bridges the collision space agxCollide::Space and the dynamic simulation s...
agx::observer_ptr< Simulation > SimulationObserver
The agxSDK namespace contain classes to bridge the collision detection system and the dynamical simul...
#define DOXYGEN_END_INTERNAL_BLOCK()
#define DOXYGEN_START_INTERNAL_BLOCK()