AGX Dynamics 2.38.0.2
Loading...
Searching...
No Matches
ElementaryMultiTangentsContactPoint.h
Go to the documentation of this file.
1/*
2Copyright 2007-2024. Algoryx Simulation AB.
3
4All AGX source code, intellectual property, documentation, sample code,
5tutorials, scene files and technical white papers, are copyrighted, proprietary
6and confidential material of Algoryx Simulation AB. You may not download, read,
7store, distribute, publish, copy or otherwise disseminate, use or expose this
8material unless having a written signed agreement with Algoryx Simulation AB, or having been
9advised so by Algoryx Simulation AB for a time limited evaluation, or having purchased a
10valid commercial license from Algoryx Simulation AB.
11
12Algoryx Simulation AB disclaims all responsibilities for loss or damage caused
13from using this software, unless otherwise stated in written agreements with
14Algoryx Simulation AB.
15*/
16
17#pragma once
18
20#include <agx/NlmcpCallback.h>
21
22namespace 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
90
92
93 public:
94 virtual ElementaryContactPoint* createInstance() override;
95
96 protected:
98
100
101 private:
102 UInt m_numTangents;
103 };
104}
#define AGX_DECLARE_POINTER_TYPES(type)
Definition Referenced.h:254
#define AGXPHYSICS_EXPORT
Constraint solver callback interface with context and start rows for context.
Interface factory for custom contact point constraint implementations.
Base class of custom implementations of contact point constraints.
Factory for the ElementaryMultiTangentsContactPoint contact model.
ElementaryMultiTangentsContactPointFactory(UInt numTangents)
Construct given number of friction directions (tangents) to be used for each contact point.
void setNumTangents(UInt numTangents)
Set number of friction directions (tangents) to be used for each contact point.
Elementary contact point supporting N >= 0 tangents.
ElementaryMultiTangentsContactPoint(UInt numTangents)
Construct given number of friction directions for each contact point.
void setNumTangents(UInt numTangents)
Set number of friction directions (tangents) to be used for each contact point.
#define DOXYGEN_END_INTERNAL_BLOCK()
Definition macros.h:97
#define DOXYGEN_START_INTERNAL_BLOCK()
Definition macros.h:96
This namespace consists of a set of classes for handling geometric intersection tests including boole...
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
uint64_t UInt
Definition Integer.h:27
double Real
Definition Real.h:42
Input data of the geometry contact, which is constant for all contact points.