AGX Dynamics  2.37.3.2
ElementaryMultiTangentsContactPoint.h
Go to the documentation of this file.
1 /*
2 Copyright 2007-2024. Algoryx Simulation AB.
3 
4 All AGX source code, intellectual property, documentation, sample code,
5 tutorials, scene files and technical white papers, are copyrighted, proprietary
6 and confidential material of Algoryx Simulation AB. You may not download, read,
7 store, distribute, publish, copy or otherwise disseminate, use or expose this
8 material unless having a written signed agreement with Algoryx Simulation AB, or having been
9 advised so by Algoryx Simulation AB for a time limited evaluation, or having purchased a
10 valid commercial license from Algoryx Simulation AB.
11 
12 Algoryx Simulation AB disclaims all responsibilities for loss or damage caused
13 from using this software, unless otherwise stated in written agreements with
14 Algoryx Simulation AB.
15 */
16 
17 #pragma once
18 
20 #include <agx/NlmcpCallback.h>
21 
22 namespace agx
23 {
26 
31  {
32  public:
38 
43  void setNumTangents( UInt numTangents );
44 
46 
47  public:
48  virtual void configure( agxCollide::ContactPoint& contactPoint, const InputData& inputData ) override;
49 
50  virtual UInt getJacobian( Jacobian6DOFElement* G, UInt numBlocks, UInt row, GWriteState::Enum writeState ) override;
51 
52  virtual ConstraintNlmcpCallback* getNlCallback() const override;
53 
54  virtual void onPostSolve( agxCollide::ContactPoint& contactPoint, const Real* solution, Real h ) const override;
55 
56  virtual void renderDebug() const override;
57 
58  protected:
60 
62 
63  private:
64  ConstraintNlmcpCallbackRef m_nlCallback;
65  };
66 
71  {
72  public:
79 
84  void setNumTangents( UInt numTangents );
85 
89  UInt getNumTangents() const;
90 
92 
93  public:
94  virtual ElementaryContactPoint* createInstance() override;
95 
96  protected:
98 
100 
101  private:
102  UInt m_numTangents;
103  };
104 }
Input data of the geometry contact, which is constant for all contact points.
#define AGXPHYSICS_EXPORT
#define AGX_DECLARE_POINTER_TYPES(type)
Definition: Referenced.h:254
Base class of custom implementations of contact point constraints.
Interface factory for custom contact point constraint implementations.
Elementary contact point supporting N >= 0 tangents.
Constraint solver callback interface with context and start rows for context.
uint32_t UInt
Definition: Integer.h:34
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
Factory for the ElementaryMultiTangentsContactPoint contact model.
A contact point in a contact data.
Definition: Contacts.h:55
double Real
Definition: Real.h:42
#define DOXYGEN_END_INTERNAL_BLOCK()
Definition: Object.h:98
#define DOXYGEN_START_INTERNAL_BLOCK()
Definition: Object.h:97