17 #ifndef AGX_FRICTIONMODEL_H 18 #define AGX_FRICTIONMODEL_H 27 #pragma warning( push ) 28 #pragma warning( disable : 4589 ) // Disable: 4589: Constructor of abstract class 'agx::FrictionModel' ignores initializer for virtual base class 'agxStream::Serializable' 36 class GeometryContact;
69 SCALE_BOUNDS = 1 << 1,
70 ITERATIVE_PROJECTION = 1 << 2,
71 HAS_CUSTOM_CONTACT_IMPLEMENTATION = 1 << 3,
74 ACCURATE_CONE_NL_DIRECT = 1 << 4,
99 int getCallbackMask()
const;
144 bool needsNlmcpCallbacks()
const;
151 bool hasCustomContactImplementation()
const;
323 void setEnableDirectExactConeProjection(
bool enable );
328 bool getEnableDirectExactConeProjection()
const;
343 return m_callbackMask;
348 return (m_callbackMask & SCALE_BOUNDS) != 0 && (m_solveType == DIRECT || m_solveType == DIRECT_AND_ITERATIVE);
351 inline bool FrictionModel::hasCustomContactImplementation()
const 353 return ( m_callbackMask & HAS_CUSTOM_CONTACT_IMPLEMENTATION ) != 0;
362 #if defined(_MSC_VER) 363 #pragma warning( pop ) InputRef< T > in(const char *name, T &obj)
Create an object with a name and a reference to the object that should be restored (usually a pointer...
OutputRef< Serializable > out(const char *name, const Serializable *obj)
Return an object that contain the name and the object that should be serialized to an archive...
Base class for all friction models with interface and some utility/necessary methods implemented...
This namespace consists of a set of classes for handling geometric intersection tests including boole...
Normal and friction equation calculated only in the DIRECT solver.
#define AGXPHYSICS_EXPORT
ScaleBoxFrictionModel(int callbackMask, SolveType preferredSolveType)
Base class providing referencing counted objects.
The geometry representation used by the collision detection engine.
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
virtual ~ScaleBoxFrictionModel()
First Normal equation is calculated in the DIRECT solver, then in a second pass the normal and the fr...
#define AGXSTREAM_DECLARE_SERIALIZABLE(T)
Use this in a Serializable class to add the required methods Important: Use full namespace in the dec...
Iterative Projected Cone Friction (IPC friction) model.
This class is an abstract base class for all classes that can be stored and retrieved from an Archive...
virtual ~BoxFrictionModel()
Class for writing serialized data in binary format to a stream.
Simulation is a class that bridges the collision space agxCollide::Space and the dynamic simulation s...
Normal and friction equation calculated only in the ITERATIVE solver.
#define AGXSTREAM_DECLARE_ABSTRACT_SERIALIZABLE(T)
Use this in a pure abstract Serializable class to add the required methods Important: Use full namesp...
The agxSDK namespace contain classes to bridge the collision detection system and the dynamical simul...
AGX_DECLARE_POINTER_TYPES(SpaceListener)