19#ifndef AGXMODEL_CONTACTMEASUREMENT_H
20#define AGXMODEL_CONTACTMEASUREMENT_H
23#include <unordered_map>
117 void storeChangedImpacts();
119 void restoreImpacts();
121 void initImpactEnergyStorage();
142 void calculateImpactEnergy(const
agxCollide::GeometryContactPtrVector& contacts,
std::unordered_map<
agx::Index,
std::vector<
agx::Vec3f>> preImpactSpeeds);
145 enum StateEnum :
agx::UInt32
147 DEBUG_RENDER = 1 << 0,
149 using State = agx::BitState<StateEnum, agx::UInt32>;
154 std::map<agx::UInt32, agx::Real> m_maxImpactEnergies;
155 bool m_onlyEmittedBodies;
156 bool m_clearMaxImpacts;
157 int m_numNonEmittedBodies;
#define AGX_DECLARE_POINTER_TYPES(type)
#define AGXSTREAM_DECLARE_SERIALIZABLE(T)
Use this in a Serializable class to add the required methods Important: Use full namespace in the dec...
Abstract representation of a data buffer.
Simulation is a class that bridges the collision space agxCollide::Space and the dynamic simulation s...
Derive from this class to implement a listener for simulation step events.
The rigid body class, combining a geometric model and a frame of reference.
A UUID, or Universally unique identifier, is intended to uniquely identify information in a distribut...
#define DOXYGEN_END_INTERNAL_BLOCK()
#define DOXYGEN_START_INTERNAL_BLOCK()
This namespace consists of a set of classes for handling geometric intersection tests including boole...
Contain classes for higher level modeling primitives, such as Tree, Terrain etc.
The agx namespace contains the dynamics/math part of the AGX Dynamics API.