114 m_contactMaterials.resize( 4,
nullptr );
125 if ( materialIndex < m_contactMaterials.size() )
127 m_contactMaterials[ materialIndex ] = contactMaterial;
139 if ( materialIndex < m_contactMaterials.size() )
141 return m_contactMaterials[
static_cast< agx::UInt32 >( excavationMode ) ];
154 agx::Vector<
agx::ContactMaterialRef > m_contactMaterials;
162 agx::ContactMaterial* contactMaterial,
165 agx::Real contactVelocity,
166 agx::Real contactGravity,
167 agx::Real contactArea,
168 agx::Real elasticRestLength,
169 size_t numContacts );
178 const
agx::RigidBody* rb1,
179 const
agx::RigidBody* rb2 );
187 agxSDK::Simulation* simulation,
188 const
agx::Vec3& position );
#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 AGXTERRAIN_EXPORT
#define AGX_DECLARE_VECTOR_TYPES(type)
The geometry representation used by the collision detection engine.
This class is an abstract base class for all classes that can be stored and retrieved from an Archive...
ExcavationMode
Enum for describing the different excavation modes of a shovel: PRIMARY - The primary mode of excavat...
Main material class which acts as a holder of a Surface Material and a Bulk material.
Base class providing referencing counted objects.
The rigid body class, combining a geometric model and a frame of reference.
#define DOXYGEN_END_INTERNAL_BLOCK()
#define DOXYGEN_START_INTERNAL_BLOCK()
The agxSDK namespace contain classes to bridge the collision detection system and the dynamical simul...
The agxTerrain namespace contains a 3D model for a dynamic deformable Terrain and related classes.
AGXTERRAIN_EXPORT agx::Material * findShovelMaterial(agxTerrain::Shovel *shovel)
Find the agx::Material on the first contact valid contact geometry in the specified shovel.
AGXTERRAIN_EXPORT bool isValidContactGeometry(agxCollide::Geometry *geometry)
Checks if the specified geometry is valid for creating aggregate contacts against.
AGXTERRAIN_EXPORT agxCollide::Geometry * getFirstContactValidGeometry(const agx::RigidBody *shovelBody)
Get first contact valid geometry in the shovel rigid body for contact.
AGXTERRAIN_EXPORT bool setupShovelAggregateContactMaterial(agx::ContactMaterial *shovelAggregateCM, agx::Real contactArea, Shovel::ExcavationMode mode, TerrainToolCollection *collection, const agx::RealVector &weights)
Configure the contact material that is to be used in shovel-aggregate contacts.
AGXTERRAIN_EXPORT void setShovelAggregateContactMaterialProperties(agx::ContactMaterial *shovelAggregateCM, agx::Real contactArea, const agx::RealVector &weights, TerrainToolCollection *collection)
Set the shovel-aggregate contact material properties from a source contact material that should eithe...
AGXTERRAIN_EXPORT void setShovelExplicitShovelContactMaterial(agx::ContactMaterial *shovelAggregateCM, agx::Real contactArea, const agx::ContactMaterial *sourceMaterial, const agx::RealVector &weights, TerrainToolCollection *collection)
Set the shovel-aggregate contact material properties from a source contact material that should be a ...
The agx namespace contains the dynamics/math part of the AGX Dynamics API.