 |
AGXDynamics
2.35.0.3
|
Go to the documentation of this file.
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,
85 void setSolveType( SolveType solveType );
90 SolveType getSolveType()
const;
95 int getCallbackMask()
const;
134 bool needsNlmcpCallbacks()
const;
141 bool hasCustomContactImplementation()
const;
159 FrictionModel(
int callbackMask, SolveType preferredSolveType );
179 SolveType m_solveType;
295 return m_callbackMask;
314 #if defined(_MSC_VER)
315 #pragma warning( pop )
bool needsNlmcpCallbacks() const
virtual ~BoxFrictionModel()
virtual ~IterativeProjectedConeFriction()
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.
virtual void matchForCustomContactImplementation(agxCollide::GeometryContact *geometryContact, agxSDK::Simulation *simulation)
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...
@ DIRECT_AND_ITERATIVE
Normal and friction equation calculated both in the ITERATIVE and the DIRECT solver.
@ DIRECT
Normal and friction equation calculated only in the DIRECT solver.
#define AGXSTREAM_DECLARE_ABSTRACT_SERIALIZABLE(T)
Use this in a pure abstract Serializable class to add the required methods Important: Use full namesp...
ScaleBoxFrictionModel(int callbackMask, SolveType preferredSolveType)
Base class for all friction models with interface and some utility/necessary methods implemented.
virtual ~ScaleBoxFrictionModel()
int getCallbackMask() const
#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 AGXPHYSICS_EXPORT
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...
Simulation is a class that bridges the collision space agxCollide::Space and the dynamic simulation s...
@ SCALE_BOUNDS
Scaled bounds, if direct, callbacks from CP-solver.
bool hasCustomContactImplementation() const
The geometry representation used by the collision detection engine.
@ HAS_CUSTOM_CONTACT_IMPLEMENTATION
Custom implementation of the contact constraints associated to this friction model with this state.
Class for writing serialized data in binary format to a stream.
Base class providing referencing counted objects.
#define AGX_DECLARE_POINTER_TYPES(type)
This namespace consists of a set of classes for handling geometric intersection tests including boole...
The agxSDK namespace contain classes to bridge the collision detection system and the dynamical simul...
@ SPLIT
First Normal equation is calculated in the DIRECT solver, then in a second pass the normal and the fr...
@ ITERATIVE
Normal and friction equation calculated only in the ITERATIVE solver.
SolveType getSolveType() const