17 #ifndef AGX_MERGESPLIT_H 18 #define AGX_MERGESPLIT_H 58 void setEnable(
bool flag );
70 void setSplitInPost(
bool flag );
73 bool getSplitInPost()
const;
76 bool getEnable( )
const;
79 bool isEnabled( )
const;
104 bool split(
agxCollide::Geometry* geometry,
bool shouldUpdateContacts =
true,
bool forceSplit =
false,
bool splitImmediately=
true );
134 bool split(
agx::RigidBody *bodyToBeSplit,
bool forceSplit =
false,
bool splitImmediately=
true );
200 void setListener(
Listener *listener );
210 const Listener *getListener( )
const;
254 void addNotification();
255 void removeNotification();
agx::ref_ptr< SleepThreshold > m_threshold
AGXTERRAIN_EXPORT void clear()
#define AGXPHYSICS_EXPORT
agx::observer_ptr< agxCollide::Space > m_space
Base class providing referencing counted objects.
MergeSplitBodyStorageRefVector m_bodyStoragePool
agx::ref_ptr< MergeSplit > MergeSplitRef
The geometry representation used by the collision detection engine.
This class is a combined container which has the find complexity of a HashTable, deterministic iterat...
Class which will go through contacting/separating bodies and determine if the bodies can be merged (g...
Vector containing 'raw' data.
This class contains all Geometries and performs Broad Phase and Narrow Phase collision detection to c...
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
GeometryBodyHashVector m_geometryBodyHash
agx::HashVector< agxCollide::Geometry *, agx::ref_ptr< MergeSplitBodyStorage > > GeometryBodyHashVector
agx::ref_ptr< Listener > ListenerRef
The rigid body class, combining a geometric model and a frame of reference.
Book keeping of a body which can be merged with other bodies.
#define AGXSTREAM_DECLARE_SERIALIZABLE(T)
Use this in a Serializable class to add the required methods Important: Use full namespace in the dec...
MergeSplitBodyStoragePtrVector m_freeBodyStorage
agx::Vector< MergeSplitBodyStorage *> MergeSplitBodyStoragePtrVector
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::Vector< agx::ref_ptr< MergeSplitBodyStorage > > MergeSplitBodyStorageRefVector
agx::RigidBodyObserverVector m_bodiesToBeSplit
Class for intercepting merge/split events.