36 class
AGXMODEL_EXPORT ElementaryVelocityConstraint : public
agx::ElementaryConstraintN<1>
39 ElementaryVelocityConstraint();
46 agx::UInt row, agx::GWriteState::Enum writeState)
override;
59 void setTargetVelocity(
agx::Real targetVelocity);
63 virtual agx::Bool isImpacting()
const override;
71 virtual ~ElementaryVelocityConstraint() {}
75 void operator=(
const ElementaryVelocityConstraint&) {}
95 void setTargetVelocity(
agx::Real targetVelocity);
97 virtual bool updateValid()
override;
105 virtual ~VelocityConstraintImplementation() {}
106 VelocityConstraintImplementation();
110 ElementaryVelocityConstraint* m_elementaryConstraint;
147 VelocityConstraintImplementation* m_velocityConstraint;
#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...
A constraint holding a single VelocityConstraintImplementation.
void addNotification() override
Called when added to a simulation.
VelocityConstraint(agxPowerLine::RotationalUnit *rotationalUnit)
Create a VelocityConstraint for the given rotational unit.
void setRotationalDimension(agxPowerLine::RotationalDimension *rotationalDim)
agx::Real getTargetVelocity()
virtual void render(agxRender::RenderManager *canvas, float scale) const override
Inherited method of how to render this constraint into DebugRenderer.
void setTargetVelocity(agx::Real targetVelocity)
virtual ~VelocityConstraint()
agx::Real getCurrentTorque()
virtual int getNumDOF() const override
The rotational has one rotational degree of freedom.
A rotational unit has one degree of freedom.
Class for managing the rendering of geometries, shapes, rigid bodies, constraints etc.
This class is an abstract base class for all classes that can be stored and retrieved from an Archive...
Abstract base class for storing/restoring a line/drums with version control.
#define DOXYGEN_END_INTERNAL_BLOCK()
#define DOXYGEN_START_INTERNAL_BLOCK()
A library of agxPowerLine components designed to model the various parts of a vehicle drive train.
The agx namespace contains the dynamics/math part of the AGX Dynamics API.