 |
AGXDynamics
2.35.0.2
|
Go to the documentation of this file.
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 ) ];
agx::ref_ptr< ContactMaterial > ContactMaterialRef
The agxTerrain namespace contains a 3D model for a dynamic deformable Terrain and related classes.
The rigid body class, combining a geometric model and a frame of reference.
This class is an abstract base class for all classes that can be stored and retrieved from an Archive...
#define DOXYGEN_END_INTERNAL_BLOCK()
#define DOXYGEN_START_INTERNAL_BLOCK()
This class is used to describe the general material properties of the Terrain.
ExcavationMode
Enum for describing the different excavation modes of a shovel: PRIMARY - The primary mode of excavat...
#define AGXSTREAM_DECLARE_SERIALIZABLE(T)
Use this in a Serializable class to add the required methods Important: Use full namespace in the dec...
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
#define AGX_DECLARE_VECTOR_TYPES(type)
The geometry representation used by the collision detection engine.
AGXTERRAIN_EXPORT bool isValidContactGeometry(agxCollide::Geometry *geometry)
Checks if the specified geometry is valid for creating aggregate contacts against.
Base class providing referencing counted objects.
#define AGX_DECLARE_POINTER_TYPES(type)
#define AGXTERRAIN_EXPORT
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...
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.
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.