#define AGXSTREAM_DECLARE_SERIALIZABLE(T)
Use this in a Serializable class to add the required methods Important: Use full namespace in the dec...
Defines a viscous coupling between two rotational dimensions.
bool getUseForcedCompliance() const
agx::Real getTorqueTransferConstant() const
agx::Real m_forcedCompliance
Clutch(agx::Real efficiency)
agx::Real m_torqueTransferConstant
void setForcedCompliance(agx::Real compliance)
agx::Real calculateCompliance(agx::Real limitTorque) const
Calculates a compliance for the clutch constraint given the wanted efficiency and a limitTorque.
void setTorqueTransferConstant(agx::Real constant)
agx::Real getForcedCompliance() const
virtual bool store(agxStream::StorageStream &str) const override
Stores internal data into stream.
agx::Real calculateLimitTorque() const
Calculates the limit torque given the given efficiency (eff) and torque transfer constant ttc(.
virtual bool postRestore(agxStream::StorageStream &str) override
agx::Real getEfficiency() const
void setEfficiency(agx::Real efficiency)
virtual bool postStore(agxStream::StorageStream &str) const override
Set values of constraints.
virtual agx::RegularizationParameters::VariableType calculateComplianceAndDamping(const agx::Real timeStep, agx::Real &compliance, agx::Real &damping) override
Calculates compliance according to a mathematical torque converter.
virtual bool addNotification(agxSDK::Simulation *simulation) override
virtual bool restore(agxStream::StorageStream &str) override
Restores internal data from stream.
Defines a stiff gear constraint between two rotational dimensions.
Simulation is a class that bridges the collision space agxCollide::Space and the dynamic simulation s...
Abstract base class for storing/restoring a line/drums with version control.
Smart pointer for handling referenced counted objects.
A library of agxPowerLine components designed to model the various parts of a vehicle drive train.
agx::ref_ptr< Clutch > ClutchRef