17 #ifndef AGXSDK_KINEMATICPATHLISTENER_H
18 #define AGXSDK_KINEMATICPATHLISTENER_H
47 : position(setPosition), time(setTime), rotation(setRotation) {}
97 void validatePathEndBehavior();
#define AGXPHYSICS_EXPORT
Class that will update a rigid body's transformation and velocities based on a given path of transfor...
virtual ~KinematicPathListener()
virtual void preCollide(const agx::TimeStamp &)
Inherited from StepEventListener. Manages the velocity updates here.
KinematicPathListener(const std::string &fileName, agx::RigidBody *rigidBody, PathEndBehavior pathEndBehavior=STAND_STILL)
Constructs a KinematicPathListener from a file defining the path.
agx::observer_ptr< agx::RigidBody > m_body
KinematicPathListener(const agx::Vector< PathConfiguration > &configurations, agx::RigidBody *rigidBody, PathEndBehavior pathEndBehavior=STAND_STILL)
Constructs a KinematicPathListener from a file defining the path.
PathConfigurationVector m_configurations
void setTimeOffset(agx::Real)
Sets a time offset to the path.
PathEndBehavior m_pathEndBehavior
const PathConfigurationVector & getPathConfigurations() const
Returns the path configurations.
agx::Vector< PathConfiguration > PathConfigurationVector
agx::UInt32 getCurrentIndex() const
Returns the index of the current path configuration (0 at beginning).
agx::Real getTimeOffset() const
Sets a time offset to the path.
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.
Smart pointer for handling referenced counted objects.
The agxSDK namespace contain classes to bridge the collision detection system and the dynamical simul...
agx::ref_ptr< KinematicPathListener > KinematicPathListenerRef
Help struct for storing transformation data per time step.
PathConfiguration(agx::Real setTime, const agx::Vec3 &setPosition, const agx::Quat &setRotation)