17 #ifndef AGXMODEL_SURFACEVELOCITYCONVEYORBELT_H
18 #define AGXMODEL_SURFACEVELOCITYCONVEYORBELT_H
155 bool m_enableDebugRendering;
#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...
The geometry representation used by the collision detection engine.
This class models a conveyor belt using surface velocity.
static SurfaceVelocityConveyorBelt * find(agxSDK::Simulation *simulation, const agx::Uuid &uuid)
This method will do a linear search in Simulation and return a pointer to the specified SurfaceVeloci...
bool getEnableDebugRendering() const
Is debug rendering enabled?
bool enableDebugRendering(agxSDK::Simulation *sim)
Enables debug rendering of conveyor belt.
static SurfaceVelocityConveyorBeltPtrVector findAll(agxSDK::Simulation *simulation, const agx::Name &name)
This method will do a linear search in Simulation and return a vector with pointers to all matching S...
SurfaceVelocityConveyorBelt()
static SurfaceVelocityConveyorBelt * find(agxSDK::Simulation *simulation, const agx::Name &name)
This method will do a linear search in Simulation and return a pointer to the specified SurfaceVeloci...
const agx::Vec3Vector & getUnitDirs() const
Returns the vector of unit-length directions from point to point.
bool disableDebugRendering()
Disables the debug rendering.
agx::Real getSpeed() const
Gets the speed of the conveyor belt. Negative speed is allowed and understood as the opposite directi...
virtual agx::Vec3f calculateSurfaceVelocity(const agxCollide::LocalContactPoint &point, size_t index) const override
Calculates the surface velocity based on the location of the contact point.
const agx::Vec3Vector & getPoints() const
Returns the vector of points.
void setSpeed(agx::Real speed)
Sets the speed of the conveyor belt. Negative speed is allowed and understood as the opposite directi...
virtual ~SurfaceVelocityConveyorBelt()
SurfaceVelocityConveyorBelt(const agx::Vec3Vector &points)
Constructor, based on list of points.
agx::Vector< SurfaceVelocityConveyorBelt * > SurfaceVelocityConveyorBeltPtrVector
Simulation is a class that bridges the collision space agxCollide::Space and the dynamic simulation s...
Representation of a name string.
A UUID, or Universally unique identifier, is intended to uniquely identify information in a distribut...
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 agxSDK namespace contain classes to bridge the collision detection system and the dynamical simul...