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();
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;
505 RigidBodyRefVector m_rigidBodies;
518 int m_garbageCollectionCounter;
543 return m_enabledBodies;
548 return m_enabledBodies;
553 return m_sleepingBodies;
557 return m_sleepingBodies;
562 m_geometryContacts = contacts;
567 return m_geometryContacts;
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.
const agxCollide::GeometryContactPtrVector * getGeometryContacts() const
Get the geometry contacts to be resolved.
#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
void setGeometryContacts(const agxCollide::GeometryContactPtrVector *contacts)
Set the geometry contacts to resolve.
The base class for interactions.
Class which will go through contacting/separating bodies and determine if the bodies can be merged (g...
agx::SetVector< RigidBody * > RigidBodyPtrSetVector
virtual void setContext(agx::Object *context)
Callback1< Task * > CallbackType
agx::SetVector< ObserverFrameRef > ObserverFrameRefSetVector
agx::RigidBodyPtrSetVector & getSleepingRigidBodies()
agx::RigidBodyPtrSetVector & getEnabledRigidBodies()
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...
agx::Solver * getSolver()
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...
#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.