97 m_contactMaterials.resize( 4,
nullptr );
108 if ( materialIndex < m_contactMaterials.size() )
110 m_contactMaterials[ materialIndex ] = contactMaterial;
122 if ( materialIndex < m_contactMaterials.size() )
124 return m_contactMaterials[
static_cast< agx::UInt32 >( excavationMode ) ];
#define AGX_DECLARE_POINTER_TYPES(type)
ExcavationMode
Enum for describing the different excavation modes of a shovel: PRIMARY - The primary mode of excavat...
This class is used to describe the general material properties of the Terrain.
Base class providing referencing counted objects.
The geometry representation used by the collision detection engine.
AGXTERRAIN_EXPORT void setShovelAggregateContactMaterialProperties(agx::ContactMaterial *shovelAggregateCM, agx::Real contactArea, const agx::ContactMaterial *sourceMaterial, const TerrainMaterial *terrainMaterial)
Set the shovel-aggregate contact material properties from a source contact material that should eithe...
AGXTERRAIN_EXPORT bool setupShovelAggregateContactMaterial(agx::ContactMaterial *shovelAggregateCM, agx::Real contactArea, Shovel::ExcavationMode mode, TerrainToolCollection *collection)
Configure the contact material that is to be used in shovel-aggregate contacts.
#define AGXTERRAIN_EXPORT
The rigid body class, combining a geometric model and a frame of reference.
Main material class which acts as a holder of a Surface Material and a Bulk material.
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 agxCollide::Geometry * getFirstContactValidGeometry(const agx::RigidBody *shovelBody)
Get first contact valid geometry in the shovel rigid body for contact.
#define AGXSTREAM_DECLARE_SERIALIZABLE(T)
Use this in a Serializable class to add the required methods Important: Use full namespace in the dec...
This class is an abstract base class for all classes that can be stored and retrieved from an Archive...
AGX_DECLARE_VECTOR_TYPES(ActiveZone)
AGXTERRAIN_EXPORT bool isValidContactGeometry(agxCollide::Geometry *geometry)
Checks if the specified geometry is valid for creating aggregate contacts against.
#define DOXYGEN_END_INTERNAL_BLOCK()
#define DOXYGEN_START_INTERNAL_BLOCK()