45 SPLIT_SEGMENTS = 1 << 2,
48 MOVE_NODES_TO_ROTATION_PLANE = 1 << 3,
52 MOVE_NODES_TO_WHEEL = 1 << 4
134 template<
typename... ModelTypes>
135 agx::Bool isModel( ModelTypes... modelTypes )
const;
190 virtual
void onAdd(
Track* track );
191 virtual
void onRemove(
Track* track );
211 template<
typename... ModelTypes>
214 std::array<
Model,
sizeof... (ModelTypes)> args = { {modelTypes...} };
215 for (
const auto arg : args )
216 if ( arg == m_model )
228 return m_properties.Is( property );
#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...
#define AGXVEHICLE_EXPORT
Simulation is a class that bridges the collision space agxCollide::Space and the dynamic simulation s...
Wheel used in tracked vehicles.
agx::Bool hasControlPoint(const agx::Vec3 &point, const agx::Real epsilon=agx::REAL_SQRT_EPSILON) const
agx::Bool getEnableProperty(Property property) const
agxVehicle::Track * getTrack() const
void setEnableProperty(Property property, agx::Bool enable)
Enable/disable a property for this wheel.
agx::UIntVector findMergedNodesIndices() const
List of node indices merged to this wheel.
agx::Bool getControlPoints(agx::Real circleSegmentLength, ControlPointContainer &container) const
Creates a set of points defining the wheel circle, each length circleSegmentLength apart.
agx::MergedBody * getOrCreateMergedBody(agxSDK::Simulation *simulation)
TrackWheel(Model model, agx::Real radius, agx::RigidBody *rb, agx::AffineMatrix4x4 rbRelTransform)
Construct given property (wheel type), radius, rigid body and transform defining wheel center,...
agx::BitState< Property, agx::UInt32 > Properties
const Properties getProperties() const
IndexRangeContainer findMergedNodesIndexRanges() const
Finds merged nodes indices and splits the list into ranges where the indices aren't consecutive.
@ SPROCKET
Sprocket - geared driving wheel with default property MERGE_NODES.
@ IDLER
Idler - geared non-powered wheel with default property MERGE_NODES.
agx::Bool isModel(ModelTypes... modelTypes) const
TrackWheel(Model model, agx::Real radius, agx::RigidBody *rb, agx::FrameRef rbRelFrame=nullptr)
Construct given property (wheel type), radius, rigid body and frame defining wheel center,...
ControlPointContainer getControlPoints(agx::Real circleSegmentLength) const
Creates a set of points defining the wheel circle, each length circleSegmentLength apart.
Assembly object representing a continuous track with a given number of shoes (nodes).
Abstraction of a wheel of arbitrary geometry.
Structure holding several "normal" rigid bodies.
The rigid body class, combining a geometric model and a frame of reference.
#define DOXYGEN_END_INTERNAL_BLOCK()
#define DOXYGEN_START_INTERNAL_BLOCK()
This namespace contains classes related to vehicles dynamics.
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
AGXCORE_EXPORT const Real REAL_SQRT_EPSILON
VectorPOD< Vec3 > Vec3Vector
agx::ref_ptr< MergedBody > MergedBodyRef