17 #ifndef AGX_DYNAMICS_SYSTEM_H 18 #define AGX_DYNAMICS_SYSTEM_H 274 agx::Real getTranslationalEnergy()
const;
291 const agx::RigidBodyRefVector& getRigidBodies()
const;
296 agx::RigidBodyRefVector& getRigidBodies();
311 const ObserverFrameRefSetVector& getObserverFrames()
const;
316 ObserverFrameRefSetVector& getObserverFrames();
361 agx::Solver* getSolver();
366 const agx::Solver* getSolver()
const;
388 void disableSolverDataExtraction();
393 bool getEnableSolverDataExtraction()
const;
436 void setEnableContactWarmstarting(
bool enable );
441 bool getEnableContactWarmstarting()
const;
459 void createUpdateTask();
467 Task* createIntegratePositionsTask();
468 Task* createUpdateFramesTask();
469 Task* createSynchronizeGeometriesTask();
470 Task* createMergedBodyPostIntegrateTask();
473 void updateGravity();
475 void commitRemovedBodies();
485 void mergeSplitPre();
487 void mergeSplitPost();
488 void updateInteractionForces();
489 void updateSleepState();
492 void stopUpdateTimerAndReport(
agx::Task* task);
493 void recordPlaybackStatistics();
496 TaskRef m_updateWorldMassAndInertiaTask;
497 TaskRef m_integratePositionsTask;
501 RigidBodyPtrSetVector m_enabledBodies;
502 RigidBodyPtrSetVector m_sleepingBodies;
503 RigidBodyRefSetVector m_removedBodies;
505 RigidBodyRefVector m_rigidBodies;
508 ConstraintRefSetVector m_constraints;
509 InteractionRefSetVector m_interactions;
510 StrongInteractionRefSetVector m_strongInteractions;
512 ObserverFrameRefSetVector m_observerFrames;
518 int m_garbageCollectionCounter;
541 inline RigidBodyPtrSetVector& DynamicsSystem::getEnabledRigidBodies()
543 return m_enabledBodies;
546 inline const RigidBodyPtrSetVector& DynamicsSystem::getEnabledRigidBodies()
const 548 return m_enabledBodies;
551 inline RigidBodyPtrSetVector& DynamicsSystem::getSleepingRigidBodies()
553 return m_sleepingBodies;
555 inline const RigidBodyPtrSetVector& DynamicsSystem::getSleepingRigidBodies()
const 557 return m_sleepingBodies;
562 m_geometryContacts = contacts;
567 return m_geometryContacts;
570 inline Solver* DynamicsSystem::getSolver() {
return m_solver; }
571 inline const Solver* DynamicsSystem::getSolver()
const {
return m_solver; }
void AGXPHYSICS_EXPORT init()
Initialize agx.
Data storage for a collection of entity instances of a specified EntityModel.
A component is an object containing other objects, enabling hierarchical structuring.
A model is an abstract representation of the class of an agx::Object.
agxCollide namespace consists of a set of classes for handling geometric intersection tests including...
#define AGXPHYSICS_EXPORT
The base class for a constraint.
A representation of a generic task.
Representation of a name string.
The Timer class permits timing execution speed with the same refinement as the built in hardware cloc...
agx::SetVector< RigidBodyRef > RigidBodyRefSetVector
agx::SetVector< InteractionRef > InteractionRefSetVector
ref_ptr< DynamicsSystem > DynamicsSystemRef
The base class for interactions.
Class which will go through contacting/separating bodies and determine if the bodies can be merged (g...
Vector containing 'raw' data.
Namespace agx contains the dynamics/math part of the AGX Dynamics API.
agx::SetVector< RigidBody * > RigidBodyPtrSetVector
virtual void setContext(agx::Object *context)
Callback1< T1 > CallbackType
agx::SetVector< ObserverFrameRef > ObserverFrameRefSetVector
The rigid body class, combining a geometric model and a frame of reference.
agx::SetVector< ConstraintRef > ConstraintRefSetVector
The complete physical system with bodies, interactions, data layout, time stepper, and solver.
A UUID, or Universally unique identifier, is intended to uniquely identify information in a distribut...
Class that will investigate bodies to see if they are resting, that is if linear/angular velocity and...
agx::SetVector< InteractionRef > StrongInteractionRefSetVector
Simulation is a class that bridges the collision space agxCollide::Space and the dynamic simulation s...
Utility entrance to the task system, simplifying parallelization of algorithms.
#define AGX_DEPRECATED(since)
An agx::Device is an abstract representation of a device on which data can be stored and processed...
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()
agx::Object is a refcounted object with a name.
With this class you can attach an ObserverFrame object relative to a RigidBody.