#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 Shaft is the most basic PowerLine Unit.
virtual bool postUpdate(agx::Real timeStep) override
Post update will update the accumulated angle.
virtual bool restore(agxStream::StorageStream &str) override
Restores internal data from stream.
virtual bool store(agxStream::StorageStream &str) const override
Stores internal data into stream.
agx::Real getAccumulatedAngle() const
agx::Real m_accumulatedAngle
virtual bool preUpdate(agx::Real timeStep) override
Functions called by a static function.
void setAccumulatedAngle(agx::Real angle)
Set the accumulated shaft angle in radians.
A rotational unit has one degree of freedom.
virtual bool store(agxStream::StorageStream &str) const override
Stores internal data into stream.
virtual bool restore(agxStream::StorageStream &str) override
Restores internal data from stream.
Abstract base class for storing/restoring a line/drums with version control.
A library of agxPowerLine components designed to model the various parts of a vehicle drive train.