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()
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.
TireConstraintImplementation * getOrCreateConstraint(agx::RigidBody *rbTire, agx::RigidBody *rbOther)
Creates and initializes a constraint between the two bodies, or returns an already existing tire cons...
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).
agx::RigidBody * getRigidBody()
virtual agxSDK::ContactEventListener::KeepContactPolicy impact(const agx::TimeStamp &, agxCollide::GeometryContact *gc)
agx::ref_ptr< TireConstraintController > TireConstraintControllerRef
const agx::RigidBody * getRigidBody() const
virtual agxSDK::ContactEventListener::KeepContactPolicy contact(const agx::TimeStamp &, agxCollide::GeometryContact *gc)
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
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
const ContactInfoVector & getContacts()
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...
virtual void post(const agx::TimeStamp &time)
Called after a step is taken in the simulation Implement this method in the derived class to get call...
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.
agx::SymmetricPair< agx::Physics::GeometryPtr > GeometryPair
Contain classes for higher level modeling primitives, such as Tree, Terrain etc.