26 class ConstraintHolder;
90 using Gear::disconnect;
119#if !defined(SWIG) && !defined(SWIG_CPPWRAPPER_BUILD)
#define AGXSTREAM_DECLARE_SERIALIZABLE(T)
Use this in a Serializable class to add the required methods Important: Use full namespace in the dec...
Connector for locking of the differential.
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.
virtual ~DifferentialLockConnector()
virtual void initConstraint() override
DifferentialLockConnector()
Lock connector between the outputs for the differential.
A differential for distributing the torque evenly between an arbitrary number of output shafts.
bool getLimitedSlipTorqueEnabled() const
UnitObserverSidePairVector m_children
void setLock(bool enable)
enable/disable the differential lock
Differential()
Create a differential.
virtual bool store(agxStream::StorageStream &str) const override
Stores internal data into stream.
virtual bool connect(agxPowerLine::Side mySide, agxPowerLine::Side unitSide, agxPowerLine::Unit *unit) override
virtual bool removeNotification(agxUtil::ConstraintHolder *holder, agxSDK::Simulation *simulation) override
Function called by a static function.
virtual agx::RegularizationParameters::VariableType calculateComplianceAndDamping(const agx::Real timeStep, agx::Real &compliance, agx::Real &damping) override
Calculate a compliance that will result in the wanted efficiency.
virtual void getConnectorsRecursive(agxPowerLine::ConnectorPtrVector &connectors) override
Fill the given vector with the Connectors that are held by this SubGraph.
virtual bool restore(agxStream::StorageStream &str) override
Restores internal data from stream.
void setLimitedSlipTorque(agx::Real limitedSlipTorque)
By setting the limited slip torque, the lock will no longer hold infinite torque.
agx::Vector< agxDriveTrain::DifferentialLockConnectorRef > m_diffLockConnectors
virtual bool disconnect(agxPowerLine::Unit *unit) override
Disconnect the given unit from this Connector.
bool getLockEnabled() const
void removeDiffLockConnector(size_t connectorIndex)
A gear is a connector between two rotational units.
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.
Utility class to hold custom implementations of constraints.
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< Differential > DifferentialRef
agx::Vector< UnitObserverSidePair > UnitObserverSidePairVector
agx::ref_ptr< DifferentialLockConnector > DifferentialLockConnectorRef
std::pair< agx::observer_ptr< agxPowerLine::Unit >, agxPowerLine::Side > UnitObserverSidePair
The agxUtil namespace contain classes and methods for utility functionality.