AGX Dynamics  2.37.2.0
ConstraintMergeSplitThresholds.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 
21 namespace agxSDK
22 {
24 
29  {
30  public:
32  {
34  NUM_MERGE_THRESHOLDS
35  };
36 
38  {
39  DESIRED_SPEED_DIFF = NUM_MERGE_THRESHOLDS,
43  NUM_THRESHOLDS
44  };
45 
46  public:
51 
57  void setMaxRelativeSpeed( agx::Real value );
58 
63  agx::Real getMaxRelativeSpeed() const;
64 
69  void setMaxDesiredSpeedDiff( agx::Real value );
70 
75  agx::Real getMaxDesiredSpeedDiff() const;
76 
81  void setMaxDesiredLockAngleDiff( agx::Real value );
82 
87  agx::Real getMaxDesiredLockAngleDiff() const;
88 
93  void setMaxDesiredRangeAngleDiff( agx::Real value );
94 
99  agx::Real getMaxDesiredRangeAngleDiff() const;
100 
105  void setMaxDesiredForceRangeDiff( agx::Real value );
106 
111  agx::Real getMaxDesiredForceRangeDiff() const;
112 
113  public:
115 
119  virtual agx::ICloneableRef clone( agx::ICloneable* child = nullptr ) override;
120 
124  virtual void resetToDefault() override;
125 
126  protected:
131  };
132 
134  {
135  return get( MAX_RELATIVE_SPEED );
136  }
137 
139  {
140  return get( DESIRED_SPEED_DIFF );
141  }
142 
144  {
145  return get( DESIRED_LOCK_ANGLE_DIFF );
146  }
147 
149  {
150  return get( DESIRED_RANGE_ANGLE_DIFF );
151  }
152 
154  {
155  return get( DESIRED_FORCE_RANGE_DIFF );
156  }
157 }
Specific thresholds used to split and merge objects given constraints.
#define AGXPHYSICS_EXPORT
#define AGX_DECLARE_POINTER_TYPES(type)
Definition: Referenced.h:254
uint32_t UInt
Definition: Integer.h:34
Smart pointer for handling referenced counted objects.
Definition: ref_ptr.h:29
#define AGXSTREAM_DECLARE_SERIALIZABLE(T)
Use this in a Serializable class to add the required methods Important: Use full namespace in the dec...
Definition: Serializable.h:207
Base class for thresholds/constants/values used in agxSDK::MergeSplitAlgorithm.
Interface class for a cloneable reference counted object.
Definition: ICloneable.h:29
double Real
Definition: Real.h:42
agx::Real getMaxRelativeSpeed() const
When the relative motion between the objects is less than this threshold, the objects may merge...
The agxSDK namespace contain classes to bridge the collision detection system and the dynamical simul...
Definition: Constraint.h:30