17 #ifndef AGXMODEL_THREE_BODY_TIRE_H
18 #define AGXMODEL_THREE_BODY_TIRE_H
122 virtual bool isValid()
const override;
#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...
void separation(const agx::TimeStamp &, agxCollide::GeometryPair &)
const agx::RigidBody * getTireCollisionRigidBody() const
virtual agx::Real getDampingCoefficient(DeformationMode mode) override
Gets the damping coefficient for a deformation mode.
virtual bool setDampingCoefficient(const agx::Real dampingCoefficient, DeformationMode mode) override
Sets the damping coefficient for a deformation mode.
ThreeBodyTire(agx::RigidBody *tireBodyCollision, agx::RigidBody *tireBodyVisual, agx::Real outerRadius, agx::RigidBody *hubBody, agx::Real innerRadius, const agx::AffineMatrix4x4 &localTransform=agx::AffineMatrix4x4())
Construct tire given rigid body (with wheel geometry/geometries) and radius.
agx::Hinge * getOuterHinge()
Gets the hinge (with active Lock1D) connecting the tire to the hub.
virtual bool setStiffness(const agx::Real stiffness, DeformationMode mode) override
Sets the stiffness for a deformation mode.
agx::RigidBodyObserver m_tireVisualBody
agxSDK::ContactEventListener::KeepContactPolicy handleContacts(const agx::TimeStamp &, agxCollide::GeometryContact *gc, bool impact)
agx::RigidBody * getTireVisualRigidBody()
virtual void removeNotification(agxSDK::Simulation *simulation) override
Called when this assembly is removed from a simulation.
agxSDK::ContactEventListener::KeepContactPolicy contact(const agx::TimeStamp &, agxCollide::GeometryContact *gc)
virtual agx::Real getStiffness(DeformationMode mode) override
Gets the stiffness for a deformation mode.
virtual void post(const agx::TimeStamp &) override
agx::HingeRef m_outerHinge
agxSDK::ContactEventListener::KeepContactPolicy impact(const agx::TimeStamp &, agxCollide::GeometryContact *gc)
virtual void addNotification(agxSDK::Simulation *simulation) override
Called when this assembly is added to a simulation (given that it not already is in the simulation).
virtual void removeNotification(agxSDK::Simulation *)
Called when this assembly is removed from a simulation.
virtual void addNotification(agxSDK::Simulation *)
Called when this assembly is added to a simulation (given that it not already is in the simulation).
Simulation is a class that bridges the collision space agxCollide::Space and the dynamic simulation s...
Utility class to get step event callbacks to any class having the methods implemented.
The hinge constraint between two rigid bodies or one rigid body and the world.
The rigid body class, combining a geometric model and a frame of reference.
Smart pointer for handling referenced counted objects.
agx::SymmetricPair< agx::Physics::GeometryPtr > GeometryPair
Contain classes for higher level modeling primitives, such as Tree, Terrain etc.