17#ifndef AGXMODEL_ONE_BODY_TIRE_H
18#define AGXMODEL_ONE_BODY_TIRE_H
28 class TireConstraintImplementation;
#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...
ContactInfo(agx::RigidBody *body, agxCollide::LocalContactPointVector *contacts)
agx::RigidBody * getBody()
agxCollide::LocalContactPointVector * getContactPoints()
Class holding the constraints between ONE tire and an arbitrary number of other bodies.
virtual ~TireConstraintController()
TireConstraintController()
TireConstraintImplementation * getOrCreateConstraint(agx::RigidBody *rbTire, agx::RigidBody *rbOther)
Creates and initializes a constraint between the two bodies, or returns an already existing tire cons...
void finalize(agx::Real h)
Clears and collects values that are used over time.
void prepare(const agx::Frame *refFrame, agx::Real radius)
All sub-constraints will be created.
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).
const agx::RigidBody * getRigidBody() const
virtual agxSDK::ContactEventListener::KeepContactPolicy impact(const agx::TimeStamp &, agxCollide::GeometryContact *gc)
agx::ref_ptr< TireConstraintController > TireConstraintControllerRef
virtual agxSDK::ContactEventListener::KeepContactPolicy contact(const agx::TimeStamp &, agxCollide::GeometryContact *gc)
const ContactInfoVector & getContacts()
agx::Vector< ContactInfo > ContactInfoVector
TireConstraintControllerRef m_constraintController
virtual void separation(const agx::TimeStamp &, agxCollide::GeometryPair &)
agx::Vector< ContactInfo > m_contacts
agx::ref_ptr< agxUtil::GeneralStepListener< OneBodyTire > > m_stepCallback
agx::RigidBody * getRigidBody()
virtual agxSDK::ContactEventListener::KeepContactPolicy handleContact(agxCollide::GeometryContact *gc)
agx::RigidBodyRef m_rigidBody
virtual void preCollide(const agx::TimeStamp &)
OneBodyTire(agx::RigidBody *rigidBody, agx::Real radius, agx::Frame *referenceFrame=nullptr)
Construct tire given rigid body (with wheel geometry/geometries) and radius.
virtual void pre(const agx::TimeStamp &)
agx::ref_ptr< agxUtil::GeneralContactEventListener< OneBodyTire > > m_contactCallback
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 hold custom implementations of constraints.
Utility class to get step event callbacks to any class having the methods implemented.
The object defining a frame of reference and providing transformations operations.
The rigid body class, combining a geometric model and a frame of reference.
Contain classes for higher level modeling primitives, such as Tree, Terrain etc.