17 #ifndef AGXSDK_STEPEVENTLISTENER_H
18 #define AGXSDK_STEPEVENTLISTENER_H
51 DEFAULT = PRE_STEP | POST_STEP,
52 ALL = PRE_COLLIDE | PRE_STEP | POST_STEP | LAST_STEP
62 virtual void setMask(
int mask)
override;
Derive from this class to implement a listener for simulation Step events.
#define AGXPHYSICS_EXPORT
#define AGX_DECLARE_POINTER_TYPES(type)
AGX_DECLARE_VECTOR_TYPES(CollisionGroupFilter)
virtual void last(const agx::TimeStamp &time)
Called after a step is taken in the simulation Implement this method in the derived class to get call...
virtual void post(const agx::TimeStamp &time)
Called after a step is taken in the simulation Implement this method in the derived class to get call...
#define AGXSTREAM_DECLARE_SERIALIZABLE(T)
Use this in a Serializable class to add the required methods Important: Use full namespace in the dec...
An EventListener can be associated to a Simulation and triggered upon various events.
ActivationMask
Defines the event states for which a listener will be activated, a mask can be bitwise OR:ed from the...
virtual void pre(const agx::TimeStamp &time)
Called before a step is taken in the simulation Implement this method in the derived class to get cal...
virtual void preCollide(const agx::TimeStamp &time)
Called before collision detection is performed in the simulation Implement this method in the derived...