AGXDynamics  2.31.1.0
ContactMaterialEntity.h
Go to the documentation of this file.
1 /*
2 Copyright 2007-2021. 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
9 having been advised so by Algoryx Simulation AB for a time limited evaluation,
10 or having purchased a 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 
18 // AUTOMATICALLY GENERATED ENTITY, DO NOT EDIT! //
20 
21 #ifndef GENERATED_AGX_PHYSICS_CONTACTMATERIAL_H_PLUGIN
22 #define GENERATED_AGX_PHYSICS_CONTACTMATERIAL_H_PLUGIN
23 
24 #define AGX_ENTITY_WRAPPER 1
25 
26 
27 #ifdef _MSC_VER
28 # pragma warning(push)
29 // warning C4505: 'agxData::VectorAttributeT<T>::print' : unreferenced local function has been removed
30 # pragma warning( disable : 4505 )
31 // warning C4251: 'X' : class 'Y' needs to have dll-interface to be used by clients of class 'Z'
32 # pragma warning( disable : 4251 )
33 // warning C4355: 'this' : used in base member initializer list
34 # pragma warning( disable : 4355 )
35 // marked as __forceinline not inlined
36 # pragma warning( disable: 4714 )
37 #endif
38 
39 #include <agxData/EntityModel.h>
40 #include <agxData/EntityStorage.h>
41 #include <agxData/EntityRef.h>
42 #include <agxData/EntityPtr.h>
43 #include <agxData/EntityInstance.h>
44 #include <agx/Integer.h>
45 #include <agx/Real.h>
46 #include <agx/macros.h>
47 #include <agx/ReferencedEntity.h>
48 #include <agx/Integer.h>
50 #include <agx/Vec3.h>
51 #include <agx/Real.h>
52 namespace agx { class ContactMaterial; }
53 
54 namespace agx { namespace Physics { class MaterialPtr; }}
55 namespace agx { namespace Physics { class MaterialPtr; }}
56 
57 namespace agx
58 {
59  namespace Physics
60  {
61 
62  class ContactMaterialModel;
63  class ContactMaterialData;
64  class ContactMaterialPtr;
65  class ContactMaterialInstance;
66  class ContactMaterialSemantics;
67 
68 
70 
75  {
76  public:
78 
79  ContactMaterialModel(const agx::String& name = "ContactMaterial");
80 
82  static ContactMaterialModel* instance();
83 
85  static ContactMaterialPtr createInstance();
86 
88  static agxData::EntityStorage* defaultStorage();
89 
91  virtual void shutdownCleanup() override;
92 
93 
94 
95  /* Attributes */
119 
120  protected:
121  virtual ~ContactMaterialModel();
122  virtual agxData::EntityData* createData(agxData::EntityStorage* storage) override;
123  virtual void configure(agx::TiXmlElement* eEntity) override;
124  virtual void initAttributeAccessors() override;
125  virtual void construct(agxData::EntityPtr instance) override;
126  void construct(agx::Physics::ContactMaterialPtr contactMaterial);
127  };
128 
129 
131  #ifndef AGX_PHYSICS_CONTACTMATERIAL_DATA_SET_OVERRIDE
132  #define AGX_PHYSICS_CONTACTMATERIAL_DATA_SET
133  class AGXPHYSICS_EXPORT ContactMaterialData : public agx::ReferencedData
134  {
135  public:
136  ContactMaterialInstance operator[] (size_t index);
137 
138  public:
140  agxData::Array< agx::Bool > isExplicit;
143  agxData::Array< agx::Vec3 > restitution;
146  agxData::Array< agx::Real > adhesiveOverlap;
147  agxData::Array< agx::Vec3 > viscosity;
148  agxData::Array< agx::Bool > surfaceFrictionEnabled;
149  agxData::Array< agx::UInt8 > contactReductionMode;
150  agxData::Array< agx::UInt8 > contactReductionBinResolution;
151  agxData::Array< agx::Bool > useContactAreaApproach;
152  agxData::Array< agx::Vec3 > wireFriction;
153  agxData::Array< agx::Real > youngsModulus;
155  agxData::Array< agx::Real > minElasticRestLength;
156  agxData::Array< agx::Real > maxElasticRestLength;
157  agxData::Array< agx::Real > impactCompliance;
158  agxData::Array< agx::Real > rollingResistanceCoefficient;
159  agxData::Array< agx::Real > twistingResistanceCoefficient;
160  agxData::Array< agx::Real > rollingResistanceCompliance;
161  agxData::Array< agx::Real > twistingResistanceCompliance;
163 
164  public:
165  typedef agx::Bool isExplicitType;
166  typedef agx::Physics::MaterialPtr material1Type;
167  typedef agx::Physics::MaterialPtr material2Type;
168  typedef agx::Vec3 restitutionType;
169  typedef agx::Vec3 frictionType;
170  typedef agx::Real adhesionType;
171  typedef agx::Real adhesiveOverlapType;
172  typedef agx::Vec3 viscosityType;
173  typedef agx::Bool surfaceFrictionEnabledType;
174  typedef agx::UInt8 contactReductionModeType;
175  typedef agx::UInt8 contactReductionBinResolutionType;
176  typedef agx::Bool useContactAreaApproachType;
177  typedef agx::Vec3 wireFrictionType;
178  typedef agx::Real youngsModulusType;
179  typedef agx::Real dampingType;
180  typedef agx::Real minElasticRestLengthType;
181  typedef agx::Real maxElasticRestLengthType;
182  typedef agx::Real impactComplianceType;
183  typedef agx::Real rollingResistanceCoefficientType;
184  typedef agx::Real twistingResistanceCoefficientType;
185  typedef agx::Real rollingResistanceComplianceType;
186  typedef agx::Real twistingResistanceComplianceType;
187  typedef agx::ContactMaterial* modelType;
188 
189  public:
190  ContactMaterialData(agxData::EntityStorage* storage);
191  ContactMaterialData();
192 
193  protected:
194  virtual ~ContactMaterialData() {}
195  virtual void setNumElements(agx::Index numElements) override;
196 
197  private:
198  ContactMaterialData& operator= (const ContactMaterialData&) { return *this; }
199 
200  };
201  #endif
203 
204 
206  class AGXPHYSICS_EXPORT ContactMaterialSemantics : public agx::ReferencedSemantics
207  {
208  public:
209 
210  // Automatic getters
211  agx::Bool const& getIsExplicit() const;
212  agx::Physics::MaterialPtr const& getMaterial1() const;
213  agx::Physics::MaterialPtr const& getMaterial2() const;
214  agx::Vec3 const& getRestitution() const;
215  agx::Vec3 const& getFriction() const;
216  agx::Real const& getAdhesion() const;
217  agx::Real const& getAdhesiveOverlap() const;
218  agx::Vec3 const& getViscosity() const;
219  agx::Bool const& getSurfaceFrictionEnabled() const;
220  agx::UInt8 const& getContactReductionMode() const;
221  agx::UInt8 const& getContactReductionBinResolution() const;
222  agx::Bool const& getUseContactAreaApproach() const;
223  agx::Vec3 const& getWireFriction() const;
224  agx::Real const& getYoungsModulus() const;
225  agx::Real const& getDamping() const;
226  agx::Real const& getMinElasticRestLength() const;
227  agx::Real const& getMaxElasticRestLength() const;
228  agx::Real const& getImpactCompliance() const;
229  agx::Real const& getRollingResistanceCoefficient() const;
230  agx::Real const& getTwistingResistanceCoefficient() const;
231  agx::Real const& getRollingResistanceCompliance() const;
232  agx::Real const& getTwistingResistanceCompliance() const;
233  agx::ContactMaterial* const& getModel() const;
234 
235  // Semantics defined by explicit kernels
236 
237  // Automatic setters
238  void setIsExplicit(agx::Bool const& value);
239  void setMaterial1(agx::Physics::MaterialPtr const& value);
240  void setMaterial2(agx::Physics::MaterialPtr const& value);
241  void setRestitution(agx::Vec3 const& value);
242  void setFriction(agx::Vec3 const& value);
243  void setAdhesion(agx::Real const& value);
244  void setAdhesiveOverlap(agx::Real const& value);
245  void setViscosity(agx::Vec3 const& value);
246  void setSurfaceFrictionEnabled(agx::Bool const& value);
247  void setContactReductionMode(agx::UInt8 const& value);
248  void setContactReductionBinResolution(agx::UInt8 const& value);
249  void setUseContactAreaApproach(agx::Bool const& value);
250  void setWireFriction(agx::Vec3 const& value);
251  void setYoungsModulus(agx::Real const& value);
252  void setDamping(agx::Real const& value);
253  void setMinElasticRestLength(agx::Real const& value);
254  void setMaxElasticRestLength(agx::Real const& value);
255  void setImpactCompliance(agx::Real const& value);
256  void setRollingResistanceCoefficient(agx::Real const& value);
257  void setTwistingResistanceCoefficient(agx::Real const& value);
258  void setRollingResistanceCompliance(agx::Real const& value);
259  void setTwistingResistanceCompliance(agx::Real const& value);
260  void setModel(agx::ContactMaterial* const& value);
261 
262 
263  protected:
264  friend class ContactMaterialPtr;
265  friend class ContactMaterialInstance;
266  ContactMaterialSemantics();
267  };
269 
270 
271 
275  {
276  public:
278  typedef ContactMaterialData DataType;
279  typedef ContactMaterialInstance InstanceType;
280 
281  public:
287  AGXPHYSICS_EXPORT ContactMaterialPtr& operator= (const agxData::EntityInstance& instance);
288  AGXPHYSICS_EXPORT ContactMaterialInstance instance();
289  AGXPHYSICS_EXPORT const ContactMaterialInstance instance() const;
290 
291  AGXPHYSICS_EXPORT ContactMaterialSemantics* operator->();
292  AGXPHYSICS_EXPORT const ContactMaterialSemantics* operator->() const;
293 
294  ContactMaterialData* getData();
295  const ContactMaterialData* getData() const;
296 
297 
299  AGXPHYSICS_EXPORT agx::Bool& isExplicit();
301  AGXPHYSICS_EXPORT agx::Bool const& isExplicit() const;
302 
306  AGXPHYSICS_EXPORT agx::Physics::MaterialPtr const& material1() const;
307 
311  AGXPHYSICS_EXPORT agx::Physics::MaterialPtr const& material2() const;
312 
314  AGXPHYSICS_EXPORT agx::Vec3& restitution();
316  AGXPHYSICS_EXPORT agx::Vec3 const& restitution() const;
317 
319  AGXPHYSICS_EXPORT agx::Vec3& friction();
321  AGXPHYSICS_EXPORT agx::Vec3 const& friction() const;
322 
324  AGXPHYSICS_EXPORT agx::Real& adhesion();
326  AGXPHYSICS_EXPORT agx::Real const& adhesion() const;
327 
329  AGXPHYSICS_EXPORT agx::Real& adhesiveOverlap();
331  AGXPHYSICS_EXPORT agx::Real const& adhesiveOverlap() const;
332 
334  AGXPHYSICS_EXPORT agx::Vec3& viscosity();
336  AGXPHYSICS_EXPORT agx::Vec3 const& viscosity() const;
337 
339  AGXPHYSICS_EXPORT agx::Bool& surfaceFrictionEnabled();
341  AGXPHYSICS_EXPORT agx::Bool const& surfaceFrictionEnabled() const;
342 
344  AGXPHYSICS_EXPORT agx::UInt8& contactReductionMode();
346  AGXPHYSICS_EXPORT agx::UInt8 const& contactReductionMode() const;
347 
349  AGXPHYSICS_EXPORT agx::UInt8& contactReductionBinResolution();
351  AGXPHYSICS_EXPORT agx::UInt8 const& contactReductionBinResolution() const;
352 
354  AGXPHYSICS_EXPORT agx::Bool& useContactAreaApproach();
356  AGXPHYSICS_EXPORT agx::Bool const& useContactAreaApproach() const;
357 
359  AGXPHYSICS_EXPORT agx::Vec3& wireFriction();
361  AGXPHYSICS_EXPORT agx::Vec3 const& wireFriction() const;
362 
364  AGXPHYSICS_EXPORT agx::Real& youngsModulus();
366  AGXPHYSICS_EXPORT agx::Real const& youngsModulus() const;
367 
369  AGXPHYSICS_EXPORT agx::Real& damping();
371  AGXPHYSICS_EXPORT agx::Real const& damping() const;
372 
374  AGXPHYSICS_EXPORT agx::Real& minElasticRestLength();
376  AGXPHYSICS_EXPORT agx::Real const& minElasticRestLength() const;
377 
379  AGXPHYSICS_EXPORT agx::Real& maxElasticRestLength();
381  AGXPHYSICS_EXPORT agx::Real const& maxElasticRestLength() const;
382 
384  AGXPHYSICS_EXPORT agx::Real& impactCompliance();
386  AGXPHYSICS_EXPORT agx::Real const& impactCompliance() const;
387 
389  AGXPHYSICS_EXPORT agx::Real& rollingResistanceCoefficient();
391  AGXPHYSICS_EXPORT agx::Real const& rollingResistanceCoefficient() const;
392 
394  AGXPHYSICS_EXPORT agx::Real& twistingResistanceCoefficient();
396  AGXPHYSICS_EXPORT agx::Real const& twistingResistanceCoefficient() const;
397 
399  AGXPHYSICS_EXPORT agx::Real& rollingResistanceCompliance();
401  AGXPHYSICS_EXPORT agx::Real const& rollingResistanceCompliance() const;
402 
404  AGXPHYSICS_EXPORT agx::Real& twistingResistanceCompliance();
406  AGXPHYSICS_EXPORT agx::Real const& twistingResistanceCompliance() const;
407 
411  AGXPHYSICS_EXPORT agx::ContactMaterial* const& model() const;
412 
414  // Only used by tolua!
415  #ifdef AGX_GENERATED_TOLUA_WRAPPER
416  inline agx::Bool const& getIsExplicit() const { return (*this)->getIsExplicit(); }
417  inline agx::Physics::MaterialPtr const& getMaterial1() const { return (*this)->getMaterial1(); }
418  inline agx::Physics::MaterialPtr const& getMaterial2() const { return (*this)->getMaterial2(); }
419  inline agx::Vec3 const& getRestitution() const { return (*this)->getRestitution(); }
420  inline agx::Vec3 const& getFriction() const { return (*this)->getFriction(); }
421  inline agx::Real const& getAdhesion() const { return (*this)->getAdhesion(); }
422  inline agx::Real const& getAdhesiveOverlap() const { return (*this)->getAdhesiveOverlap(); }
423  inline agx::Vec3 const& getViscosity() const { return (*this)->getViscosity(); }
424  inline agx::Bool const& getSurfaceFrictionEnabled() const { return (*this)->getSurfaceFrictionEnabled(); }
425  inline agx::UInt8 const& getContactReductionMode() const { return (*this)->getContactReductionMode(); }
426  inline agx::UInt8 const& getContactReductionBinResolution() const { return (*this)->getContactReductionBinResolution(); }
427  inline agx::Bool const& getUseContactAreaApproach() const { return (*this)->getUseContactAreaApproach(); }
428  inline agx::Vec3 const& getWireFriction() const { return (*this)->getWireFriction(); }
429  inline agx::Real const& getYoungsModulus() const { return (*this)->getYoungsModulus(); }
430  inline agx::Real const& getDamping() const { return (*this)->getDamping(); }
431  inline agx::Real const& getMinElasticRestLength() const { return (*this)->getMinElasticRestLength(); }
432  inline agx::Real const& getMaxElasticRestLength() const { return (*this)->getMaxElasticRestLength(); }
433  inline agx::Real const& getImpactCompliance() const { return (*this)->getImpactCompliance(); }
434  inline agx::Real const& getRollingResistanceCoefficient() const { return (*this)->getRollingResistanceCoefficient(); }
435  inline agx::Real const& getTwistingResistanceCoefficient() const { return (*this)->getTwistingResistanceCoefficient(); }
436  inline agx::Real const& getRollingResistanceCompliance() const { return (*this)->getRollingResistanceCompliance(); }
437  inline agx::Real const& getTwistingResistanceCompliance() const { return (*this)->getTwistingResistanceCompliance(); }
438  inline agx::ContactMaterial* const& getModel() const { return (*this)->getModel(); }
439 
440 
441  inline void setIsExplicit(agx::Bool const& value) { (*this)->setIsExplicit(value); }
442  inline void setMaterial1(agx::Physics::MaterialPtr const& value) { (*this)->setMaterial1(value); }
443  inline void setMaterial2(agx::Physics::MaterialPtr const& value) { (*this)->setMaterial2(value); }
444  inline void setRestitution(agx::Vec3 const& value) { (*this)->setRestitution(value); }
445  inline void setFriction(agx::Vec3 const& value) { (*this)->setFriction(value); }
446  inline void setAdhesion(agx::Real const& value) { (*this)->setAdhesion(value); }
447  inline void setAdhesiveOverlap(agx::Real const& value) { (*this)->setAdhesiveOverlap(value); }
448  inline void setViscosity(agx::Vec3 const& value) { (*this)->setViscosity(value); }
449  inline void setSurfaceFrictionEnabled(agx::Bool const& value) { (*this)->setSurfaceFrictionEnabled(value); }
450  inline void setContactReductionMode(agx::UInt8 const& value) { (*this)->setContactReductionMode(value); }
451  inline void setContactReductionBinResolution(agx::UInt8 const& value) { (*this)->setContactReductionBinResolution(value); }
452  inline void setUseContactAreaApproach(agx::Bool const& value) { (*this)->setUseContactAreaApproach(value); }
453  inline void setWireFriction(agx::Vec3 const& value) { (*this)->setWireFriction(value); }
454  inline void setYoungsModulus(agx::Real const& value) { (*this)->setYoungsModulus(value); }
455  inline void setDamping(agx::Real const& value) { (*this)->setDamping(value); }
456  inline void setMinElasticRestLength(agx::Real const& value) { (*this)->setMinElasticRestLength(value); }
457  inline void setMaxElasticRestLength(agx::Real const& value) { (*this)->setMaxElasticRestLength(value); }
458  inline void setImpactCompliance(agx::Real const& value) { (*this)->setImpactCompliance(value); }
459  inline void setRollingResistanceCoefficient(agx::Real const& value) { (*this)->setRollingResistanceCoefficient(value); }
460  inline void setTwistingResistanceCoefficient(agx::Real const& value) { (*this)->setTwistingResistanceCoefficient(value); }
461  inline void setRollingResistanceCompliance(agx::Real const& value) { (*this)->setRollingResistanceCompliance(value); }
462  inline void setTwistingResistanceCompliance(agx::Real const& value) { (*this)->setTwistingResistanceCompliance(value); }
463  inline void setModel(agx::ContactMaterial* const& value) { (*this)->setModel(value); }
464  #endif
466 
467  };
468 
469  // Entity is Referenced
471 
472 
474  class AGXPHYSICS_EXPORT ContactMaterialInstance : public agx::ReferencedInstance
475  {
476  public:
477  ContactMaterialInstance();
478  ContactMaterialInstance(ContactMaterialData* data, agx::Index index);
479  ContactMaterialInstance(agxData::EntityStorage *storage, agx::Index index);
480  ContactMaterialInstance(const agxData::EntityInstance& other);
481  ContactMaterialInstance(const agxData::EntityPtr& ptr);
482 
483  ContactMaterialData* getData();
484  const ContactMaterialData* getData() const;
485 
486  public:
488  agx::Bool& isExplicit();
490  agx::Bool const& isExplicit() const;
491 
493  agx::Physics::MaterialPtr& material1();
495  agx::Physics::MaterialPtr const& material1() const;
496 
498  agx::Physics::MaterialPtr& material2();
500  agx::Physics::MaterialPtr const& material2() const;
501 
503  agx::Vec3& restitution();
505  agx::Vec3 const& restitution() const;
506 
508  agx::Vec3& friction();
510  agx::Vec3 const& friction() const;
511 
513  agx::Real& adhesion();
515  agx::Real const& adhesion() const;
516 
518  agx::Real& adhesiveOverlap();
520  agx::Real const& adhesiveOverlap() const;
521 
523  agx::Vec3& viscosity();
525  agx::Vec3 const& viscosity() const;
526 
528  agx::Bool& surfaceFrictionEnabled();
530  agx::Bool const& surfaceFrictionEnabled() const;
531 
533  agx::UInt8& contactReductionMode();
535  agx::UInt8 const& contactReductionMode() const;
536 
538  agx::UInt8& contactReductionBinResolution();
540  agx::UInt8 const& contactReductionBinResolution() const;
541 
543  agx::Bool& useContactAreaApproach();
545  agx::Bool const& useContactAreaApproach() const;
546 
548  agx::Vec3& wireFriction();
550  agx::Vec3 const& wireFriction() const;
551 
553  agx::Real& youngsModulus();
555  agx::Real const& youngsModulus() const;
556 
558  agx::Real& damping();
560  agx::Real const& damping() const;
561 
563  agx::Real& minElasticRestLength();
565  agx::Real const& minElasticRestLength() const;
566 
568  agx::Real& maxElasticRestLength();
570  agx::Real const& maxElasticRestLength() const;
571 
573  agx::Real& impactCompliance();
575  agx::Real const& impactCompliance() const;
576 
578  agx::Real& rollingResistanceCoefficient();
580  agx::Real const& rollingResistanceCoefficient() const;
581 
583  agx::Real& twistingResistanceCoefficient();
585  agx::Real const& twistingResistanceCoefficient() const;
586 
588  agx::Real& rollingResistanceCompliance();
590  agx::Real const& rollingResistanceCompliance() const;
591 
593  agx::Real& twistingResistanceCompliance();
595  agx::Real const& twistingResistanceCompliance() const;
596 
598  agx::ContactMaterial*& model();
600  agx::ContactMaterial* const& model() const;
601 
602  };
604 
605 
606 
609 
610 
611 
613  /* Implementation */
614  //-----------------------------------------------------------------------------------------------------
615  //-----------------------------------------------------------------------------------------------------
616  inline ContactMaterialInstance agx::Physics::ContactMaterialData::operator[] (size_t index) { return ContactMaterialInstance(this, (agx::Index)index); }
617  //-----------------------------------------------------------------------------------------------------
621  {
623  "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
625  }
626 
628  {
629  agxAssertN(!instance || instance.isInstanceOf(ContactMaterialModel::instance()),
630  "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
632  }
633 
635  {
638  "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
640  return *this;
641  }
642 
644  {
646  agxAssertN(!instance || instance.isInstanceOf(ContactMaterialModel::instance()),
647  "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
649  return *this;
650  }
651 
652  inline ContactMaterialInstance ContactMaterialPtr::instance() { return agxData::EntityPtr::instance(); }
653  inline const ContactMaterialInstance ContactMaterialPtr::instance() const { return agxData::EntityPtr::instance(); }
654  AGX_FORCE_INLINE ContactMaterialSemantics* ContactMaterialPtr::operator->() { return (ContactMaterialSemantics* )this; }
655  AGX_FORCE_INLINE const ContactMaterialSemantics* ContactMaterialPtr::operator->() const { return (const ContactMaterialSemantics* )this; }
656  AGX_FORCE_INLINE ContactMaterialData* ContactMaterialPtr::getData() { return static_cast<ContactMaterialData* >(agxData::EntityPtr::getData()); }
657  AGX_FORCE_INLINE const ContactMaterialData* ContactMaterialPtr::getData() const { return static_cast<const ContactMaterialData* >(agxData::EntityPtr::getData()); }
658 
659  AGX_FORCE_INLINE agx::Bool& ContactMaterialPtr::isExplicit() { verifyIndex(); return getData()->isExplicit[calculateIndex()]; }
660  AGX_FORCE_INLINE agx::Bool const& ContactMaterialPtr::isExplicit() const { verifyIndex(); return getData()->isExplicit[calculateIndex()]; }
661 
662  AGX_FORCE_INLINE agx::Physics::MaterialPtr& ContactMaterialPtr::material1() { verifyIndex(); return getData()->material1[calculateIndex()]; }
663  AGX_FORCE_INLINE agx::Physics::MaterialPtr const& ContactMaterialPtr::material1() const { verifyIndex(); return getData()->material1[calculateIndex()]; }
664 
665  AGX_FORCE_INLINE agx::Physics::MaterialPtr& ContactMaterialPtr::material2() { verifyIndex(); return getData()->material2[calculateIndex()]; }
666  AGX_FORCE_INLINE agx::Physics::MaterialPtr const& ContactMaterialPtr::material2() const { verifyIndex(); return getData()->material2[calculateIndex()]; }
667 
668  AGX_FORCE_INLINE agx::Vec3& ContactMaterialPtr::restitution() { verifyIndex(); return getData()->restitution[calculateIndex()]; }
669  AGX_FORCE_INLINE agx::Vec3 const& ContactMaterialPtr::restitution() const { verifyIndex(); return getData()->restitution[calculateIndex()]; }
670 
671  AGX_FORCE_INLINE agx::Vec3& ContactMaterialPtr::friction() { verifyIndex(); return getData()->friction[calculateIndex()]; }
672  AGX_FORCE_INLINE agx::Vec3 const& ContactMaterialPtr::friction() const { verifyIndex(); return getData()->friction[calculateIndex()]; }
673 
674  AGX_FORCE_INLINE agx::Real& ContactMaterialPtr::adhesion() { verifyIndex(); return getData()->adhesion[calculateIndex()]; }
675  AGX_FORCE_INLINE agx::Real const& ContactMaterialPtr::adhesion() const { verifyIndex(); return getData()->adhesion[calculateIndex()]; }
676 
677  AGX_FORCE_INLINE agx::Real& ContactMaterialPtr::adhesiveOverlap() { verifyIndex(); return getData()->adhesiveOverlap[calculateIndex()]; }
678  AGX_FORCE_INLINE agx::Real const& ContactMaterialPtr::adhesiveOverlap() const { verifyIndex(); return getData()->adhesiveOverlap[calculateIndex()]; }
679 
680  AGX_FORCE_INLINE agx::Vec3& ContactMaterialPtr::viscosity() { verifyIndex(); return getData()->viscosity[calculateIndex()]; }
681  AGX_FORCE_INLINE agx::Vec3 const& ContactMaterialPtr::viscosity() const { verifyIndex(); return getData()->viscosity[calculateIndex()]; }
682 
683  AGX_FORCE_INLINE agx::Bool& ContactMaterialPtr::surfaceFrictionEnabled() { verifyIndex(); return getData()->surfaceFrictionEnabled[calculateIndex()]; }
684  AGX_FORCE_INLINE agx::Bool const& ContactMaterialPtr::surfaceFrictionEnabled() const { verifyIndex(); return getData()->surfaceFrictionEnabled[calculateIndex()]; }
685 
686  AGX_FORCE_INLINE agx::UInt8& ContactMaterialPtr::contactReductionMode() { verifyIndex(); return getData()->contactReductionMode[calculateIndex()]; }
687  AGX_FORCE_INLINE agx::UInt8 const& ContactMaterialPtr::contactReductionMode() const { verifyIndex(); return getData()->contactReductionMode[calculateIndex()]; }
688 
689  AGX_FORCE_INLINE agx::UInt8& ContactMaterialPtr::contactReductionBinResolution() { verifyIndex(); return getData()->contactReductionBinResolution[calculateIndex()]; }
690  AGX_FORCE_INLINE agx::UInt8 const& ContactMaterialPtr::contactReductionBinResolution() const { verifyIndex(); return getData()->contactReductionBinResolution[calculateIndex()]; }
691 
692  AGX_FORCE_INLINE agx::Bool& ContactMaterialPtr::useContactAreaApproach() { verifyIndex(); return getData()->useContactAreaApproach[calculateIndex()]; }
693  AGX_FORCE_INLINE agx::Bool const& ContactMaterialPtr::useContactAreaApproach() const { verifyIndex(); return getData()->useContactAreaApproach[calculateIndex()]; }
694 
695  AGX_FORCE_INLINE agx::Vec3& ContactMaterialPtr::wireFriction() { verifyIndex(); return getData()->wireFriction[calculateIndex()]; }
696  AGX_FORCE_INLINE agx::Vec3 const& ContactMaterialPtr::wireFriction() const { verifyIndex(); return getData()->wireFriction[calculateIndex()]; }
697 
698  AGX_FORCE_INLINE agx::Real& ContactMaterialPtr::youngsModulus() { verifyIndex(); return getData()->youngsModulus[calculateIndex()]; }
699  AGX_FORCE_INLINE agx::Real const& ContactMaterialPtr::youngsModulus() const { verifyIndex(); return getData()->youngsModulus[calculateIndex()]; }
700 
701  AGX_FORCE_INLINE agx::Real& ContactMaterialPtr::damping() { verifyIndex(); return getData()->damping[calculateIndex()]; }
702  AGX_FORCE_INLINE agx::Real const& ContactMaterialPtr::damping() const { verifyIndex(); return getData()->damping[calculateIndex()]; }
703 
704  AGX_FORCE_INLINE agx::Real& ContactMaterialPtr::minElasticRestLength() { verifyIndex(); return getData()->minElasticRestLength[calculateIndex()]; }
705  AGX_FORCE_INLINE agx::Real const& ContactMaterialPtr::minElasticRestLength() const { verifyIndex(); return getData()->minElasticRestLength[calculateIndex()]; }
706 
707  AGX_FORCE_INLINE agx::Real& ContactMaterialPtr::maxElasticRestLength() { verifyIndex(); return getData()->maxElasticRestLength[calculateIndex()]; }
708  AGX_FORCE_INLINE agx::Real const& ContactMaterialPtr::maxElasticRestLength() const { verifyIndex(); return getData()->maxElasticRestLength[calculateIndex()]; }
709 
710  AGX_FORCE_INLINE agx::Real& ContactMaterialPtr::impactCompliance() { verifyIndex(); return getData()->impactCompliance[calculateIndex()]; }
711  AGX_FORCE_INLINE agx::Real const& ContactMaterialPtr::impactCompliance() const { verifyIndex(); return getData()->impactCompliance[calculateIndex()]; }
712 
713  AGX_FORCE_INLINE agx::Real& ContactMaterialPtr::rollingResistanceCoefficient() { verifyIndex(); return getData()->rollingResistanceCoefficient[calculateIndex()]; }
714  AGX_FORCE_INLINE agx::Real const& ContactMaterialPtr::rollingResistanceCoefficient() const { verifyIndex(); return getData()->rollingResistanceCoefficient[calculateIndex()]; }
715 
716  AGX_FORCE_INLINE agx::Real& ContactMaterialPtr::twistingResistanceCoefficient() { verifyIndex(); return getData()->twistingResistanceCoefficient[calculateIndex()]; }
717  AGX_FORCE_INLINE agx::Real const& ContactMaterialPtr::twistingResistanceCoefficient() const { verifyIndex(); return getData()->twistingResistanceCoefficient[calculateIndex()]; }
718 
719  AGX_FORCE_INLINE agx::Real& ContactMaterialPtr::rollingResistanceCompliance() { verifyIndex(); return getData()->rollingResistanceCompliance[calculateIndex()]; }
720  AGX_FORCE_INLINE agx::Real const& ContactMaterialPtr::rollingResistanceCompliance() const { verifyIndex(); return getData()->rollingResistanceCompliance[calculateIndex()]; }
721 
722  AGX_FORCE_INLINE agx::Real& ContactMaterialPtr::twistingResistanceCompliance() { verifyIndex(); return getData()->twistingResistanceCompliance[calculateIndex()]; }
723  AGX_FORCE_INLINE agx::Real const& ContactMaterialPtr::twistingResistanceCompliance() const { verifyIndex(); return getData()->twistingResistanceCompliance[calculateIndex()]; }
724 
725  AGX_FORCE_INLINE agx::ContactMaterial*& ContactMaterialPtr::model() { verifyIndex(); return getData()->model[calculateIndex()]; }
726  AGX_FORCE_INLINE agx::ContactMaterial* const& ContactMaterialPtr::model() const { verifyIndex(); return getData()->model[calculateIndex()]; }
727 
728  //-----------------------------------------------------------------------------------------------------
729  AGX_FORCE_INLINE ContactMaterialInstance::ContactMaterialInstance() {}
730  AGX_FORCE_INLINE ContactMaterialInstance::ContactMaterialInstance(ContactMaterialData* data, agx::Index index) : agx::ReferencedInstance(data, index) {}
731  AGX_FORCE_INLINE ContactMaterialInstance::ContactMaterialInstance(agxData::EntityStorage* storage, agx::Index index) : agx::ReferencedInstance(storage, index) {}
732  AGX_FORCE_INLINE ContactMaterialInstance::ContactMaterialInstance(const agxData::EntityInstance& other) : agx::ReferencedInstance(other)
733  {
735  "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
737  }
738 
739  AGX_FORCE_INLINE ContactMaterialInstance::ContactMaterialInstance(const agxData::EntityPtr& ptr) : agx::ReferencedInstance(ptr)
740  {
742  "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
744  }
745 
746 
747  AGX_FORCE_INLINE ContactMaterialData* ContactMaterialInstance::getData() { return static_cast<ContactMaterialData* >(agxData::EntityInstance::getData()); }
748  AGX_FORCE_INLINE const ContactMaterialData* ContactMaterialInstance::getData() const { return static_cast<const ContactMaterialData* >(agxData::EntityInstance::getData()); }
749 
750  AGX_FORCE_INLINE agx::Bool& ContactMaterialInstance::isExplicit() { verifyIndex(); return getData()->isExplicit[getIndex()]; }
751  AGX_FORCE_INLINE agx::Bool const& ContactMaterialInstance::isExplicit() const { verifyIndex(); return getData()->isExplicit[getIndex()]; }
752 
753  AGX_FORCE_INLINE agx::Physics::MaterialPtr& ContactMaterialInstance::material1() { verifyIndex(); return getData()->material1[getIndex()]; }
754  AGX_FORCE_INLINE agx::Physics::MaterialPtr const& ContactMaterialInstance::material1() const { verifyIndex(); return getData()->material1[getIndex()]; }
755 
756  AGX_FORCE_INLINE agx::Physics::MaterialPtr& ContactMaterialInstance::material2() { verifyIndex(); return getData()->material2[getIndex()]; }
757  AGX_FORCE_INLINE agx::Physics::MaterialPtr const& ContactMaterialInstance::material2() const { verifyIndex(); return getData()->material2[getIndex()]; }
758 
759  AGX_FORCE_INLINE agx::Vec3& ContactMaterialInstance::restitution() { verifyIndex(); return getData()->restitution[getIndex()]; }
760  AGX_FORCE_INLINE agx::Vec3 const& ContactMaterialInstance::restitution() const { verifyIndex(); return getData()->restitution[getIndex()]; }
761 
762  AGX_FORCE_INLINE agx::Vec3& ContactMaterialInstance::friction() { verifyIndex(); return getData()->friction[getIndex()]; }
763  AGX_FORCE_INLINE agx::Vec3 const& ContactMaterialInstance::friction() const { verifyIndex(); return getData()->friction[getIndex()]; }
764 
765  AGX_FORCE_INLINE agx::Real& ContactMaterialInstance::adhesion() { verifyIndex(); return getData()->adhesion[getIndex()]; }
766  AGX_FORCE_INLINE agx::Real const& ContactMaterialInstance::adhesion() const { verifyIndex(); return getData()->adhesion[getIndex()]; }
767 
768  AGX_FORCE_INLINE agx::Real& ContactMaterialInstance::adhesiveOverlap() { verifyIndex(); return getData()->adhesiveOverlap[getIndex()]; }
769  AGX_FORCE_INLINE agx::Real const& ContactMaterialInstance::adhesiveOverlap() const { verifyIndex(); return getData()->adhesiveOverlap[getIndex()]; }
770 
771  AGX_FORCE_INLINE agx::Vec3& ContactMaterialInstance::viscosity() { verifyIndex(); return getData()->viscosity[getIndex()]; }
772  AGX_FORCE_INLINE agx::Vec3 const& ContactMaterialInstance::viscosity() const { verifyIndex(); return getData()->viscosity[getIndex()]; }
773 
774  AGX_FORCE_INLINE agx::Bool& ContactMaterialInstance::surfaceFrictionEnabled() { verifyIndex(); return getData()->surfaceFrictionEnabled[getIndex()]; }
775  AGX_FORCE_INLINE agx::Bool const& ContactMaterialInstance::surfaceFrictionEnabled() const { verifyIndex(); return getData()->surfaceFrictionEnabled[getIndex()]; }
776 
777  AGX_FORCE_INLINE agx::UInt8& ContactMaterialInstance::contactReductionMode() { verifyIndex(); return getData()->contactReductionMode[getIndex()]; }
778  AGX_FORCE_INLINE agx::UInt8 const& ContactMaterialInstance::contactReductionMode() const { verifyIndex(); return getData()->contactReductionMode[getIndex()]; }
779 
780  AGX_FORCE_INLINE agx::UInt8& ContactMaterialInstance::contactReductionBinResolution() { verifyIndex(); return getData()->contactReductionBinResolution[getIndex()]; }
781  AGX_FORCE_INLINE agx::UInt8 const& ContactMaterialInstance::contactReductionBinResolution() const { verifyIndex(); return getData()->contactReductionBinResolution[getIndex()]; }
782 
783  AGX_FORCE_INLINE agx::Bool& ContactMaterialInstance::useContactAreaApproach() { verifyIndex(); return getData()->useContactAreaApproach[getIndex()]; }
784  AGX_FORCE_INLINE agx::Bool const& ContactMaterialInstance::useContactAreaApproach() const { verifyIndex(); return getData()->useContactAreaApproach[getIndex()]; }
785 
786  AGX_FORCE_INLINE agx::Vec3& ContactMaterialInstance::wireFriction() { verifyIndex(); return getData()->wireFriction[getIndex()]; }
787  AGX_FORCE_INLINE agx::Vec3 const& ContactMaterialInstance::wireFriction() const { verifyIndex(); return getData()->wireFriction[getIndex()]; }
788 
789  AGX_FORCE_INLINE agx::Real& ContactMaterialInstance::youngsModulus() { verifyIndex(); return getData()->youngsModulus[getIndex()]; }
790  AGX_FORCE_INLINE agx::Real const& ContactMaterialInstance::youngsModulus() const { verifyIndex(); return getData()->youngsModulus[getIndex()]; }
791 
792  AGX_FORCE_INLINE agx::Real& ContactMaterialInstance::damping() { verifyIndex(); return getData()->damping[getIndex()]; }
793  AGX_FORCE_INLINE agx::Real const& ContactMaterialInstance::damping() const { verifyIndex(); return getData()->damping[getIndex()]; }
794 
795  AGX_FORCE_INLINE agx::Real& ContactMaterialInstance::minElasticRestLength() { verifyIndex(); return getData()->minElasticRestLength[getIndex()]; }
796  AGX_FORCE_INLINE agx::Real const& ContactMaterialInstance::minElasticRestLength() const { verifyIndex(); return getData()->minElasticRestLength[getIndex()]; }
797 
798  AGX_FORCE_INLINE agx::Real& ContactMaterialInstance::maxElasticRestLength() { verifyIndex(); return getData()->maxElasticRestLength[getIndex()]; }
799  AGX_FORCE_INLINE agx::Real const& ContactMaterialInstance::maxElasticRestLength() const { verifyIndex(); return getData()->maxElasticRestLength[getIndex()]; }
800 
801  AGX_FORCE_INLINE agx::Real& ContactMaterialInstance::impactCompliance() { verifyIndex(); return getData()->impactCompliance[getIndex()]; }
802  AGX_FORCE_INLINE agx::Real const& ContactMaterialInstance::impactCompliance() const { verifyIndex(); return getData()->impactCompliance[getIndex()]; }
803 
804  AGX_FORCE_INLINE agx::Real& ContactMaterialInstance::rollingResistanceCoefficient() { verifyIndex(); return getData()->rollingResistanceCoefficient[getIndex()]; }
805  AGX_FORCE_INLINE agx::Real const& ContactMaterialInstance::rollingResistanceCoefficient() const { verifyIndex(); return getData()->rollingResistanceCoefficient[getIndex()]; }
806 
807  AGX_FORCE_INLINE agx::Real& ContactMaterialInstance::twistingResistanceCoefficient() { verifyIndex(); return getData()->twistingResistanceCoefficient[getIndex()]; }
808  AGX_FORCE_INLINE agx::Real const& ContactMaterialInstance::twistingResistanceCoefficient() const { verifyIndex(); return getData()->twistingResistanceCoefficient[getIndex()]; }
809 
810  AGX_FORCE_INLINE agx::Real& ContactMaterialInstance::rollingResistanceCompliance() { verifyIndex(); return getData()->rollingResistanceCompliance[getIndex()]; }
811  AGX_FORCE_INLINE agx::Real const& ContactMaterialInstance::rollingResistanceCompliance() const { verifyIndex(); return getData()->rollingResistanceCompliance[getIndex()]; }
812 
813  AGX_FORCE_INLINE agx::Real& ContactMaterialInstance::twistingResistanceCompliance() { verifyIndex(); return getData()->twistingResistanceCompliance[getIndex()]; }
814  AGX_FORCE_INLINE agx::Real const& ContactMaterialInstance::twistingResistanceCompliance() const { verifyIndex(); return getData()->twistingResistanceCompliance[getIndex()]; }
815 
816  AGX_FORCE_INLINE agx::ContactMaterial*& ContactMaterialInstance::model() { verifyIndex(); return getData()->model[getIndex()]; }
817  AGX_FORCE_INLINE agx::ContactMaterial* const& ContactMaterialInstance::model() const { verifyIndex(); return getData()->model[getIndex()]; }
818 
819  //-----------------------------------------------------------------------------------------------------
820  AGX_FORCE_INLINE ContactMaterialSemantics::ContactMaterialSemantics() {}
821  //-----------------------------------------------------------------------------------------------------
823  }
824 }
825 
826 AGX_TYPE_BINDING(agx::Physics::ContactMaterialPtr, "Physics.ContactMaterialPtr")
827 AGX_TYPE_BINDING(agx::Physics::ContactMaterialInstance, "Physics.ContactMaterialInstance")
828 
829 #ifdef _MSC_VER
830 # pragma warning(pop)
831 #endif
832 
833 #undef AGX_ENTITY_WRAPPER
834 #undef AGX_ENTITY_NAMESPACE
835 #endif
836 
This class store the combine material properties between two agx::Material&#39;s.
Definition: Material.h:503
static ContactMaterialModel * instance()
static agxData::ScalarAttributeT< agx::Bool > * surfaceFrictionEnabledAttribute
AGXPHYSICS_EXPORT agx::Bool & useContactAreaApproach()
agxData::EntityData * getData()
AGXPHYSICS_EXPORT agx::Real & twistingResistanceCoefficient()
AGXPHYSICS_EXPORT ContactMaterialSemantics * operator->()
static agxData::ScalarAttributeT< agx::Real > * maxElasticRestLengthAttribute
agxData::EntityInstance instance()
Definition: EntityPtr.h:269
AGXPHYSICS_EXPORT agx::Real & minElasticRestLength()
AGXPHYSICS_EXPORT agx::Real & twistingResistanceCompliance()
bool Bool
Definition: Integer.h:48
Data storage for a collection of entity instances of a specified EntityModel.
Definition: EntityStorage.h:73
static agxData::ScalarAttributeT< agx::Real > * youngsModulusAttribute
Pointer to a entity instance of type Physics.Material.
#define agxAssertN(expr, format,...)
Definition: debug.h:145
agxData::EntityData * getData()
agx::String fullPath() const
AGXPHYSICS_EXPORT agx::Real & maxElasticRestLength()
#define AGX_TYPE_BINDING(_Type, _Name)
Definition: Type.h:179
AGXPHYSICS_EXPORT ContactMaterialPtr()
AGXCORE_EXPORT Model * getModel(const Path &path, const Path &_namespace=Path())
Definition: Object.h:364
static agxData::ScalarAttributeT< agx::Bool > * isExplicitAttribute
AGXPHYSICS_EXPORT agx::Physics::MaterialPtr & material2()
uint8_t UInt8
Definition: Integer.h:38
agx::Model * getModel()
Definition: Object.h:371
#define AGXPHYSICS_EXPORT
agxData::EntityRef< ContactMaterialPtr > ContactMaterialRef
Entity instance provides access to a single instance in an EntityStorage.
Accessor to a entity instance stored in a EntityStorage, to allow SOA (structure of arrays) data to b...
Definition: EntityPtr.h:51
static agxData::ScalarAttributeT< agx::Real > * impactComplianceAttribute
AGXPHYSICS_EXPORT agx::Real & adhesiveOverlap()
#define AGX_DECLARE_POINTER_TYPES(type)
Definition: Referenced.h:248
bool isInstanceOf(agxData::EntityModel *model) const
AGXPHYSICS_EXPORT agx::Bool & isExplicit()
#define AGX_FORCE_INLINE
Definition: Object.h:63
static agxData::ScalarAttributeT< agx::UInt8 > * contactReductionBinResolutionAttribute
AGXPHYSICS_EXPORT agx::Real & impactCompliance()
static agxData::ScalarAttributeT< agx::Real > * minElasticRestLengthAttribute
Type-specific Array used for fast access into the data held by a Buffer.
Definition: agxData.h:30
static agxData::ScalarAttributeT< agx::UInt8 > * contactReductionModeAttribute
AGXPHYSICS_EXPORT agx::ContactMaterial *& model()
AGXPHYSICS_EXPORT agx::Physics::MaterialPtr & material1()
static agxData::ScalarAttributeT< agx::Real > * twistingResistanceComplianceAttribute
static agxData::PointerAttributeT< agx::ContactMaterial * > * modelAttribute
AGXPHYSICS_EXPORT agx::UInt8 & contactReductionBinResolution()
static agxData::ScalarAttributeT< agx::Vec3 > * viscosityAttribute
Vector containing &#39;raw&#39; data.
Definition: Vector.h:245
EntityPtr & operator=(const EntityPtr &other)=default
Namespace agx contains the dynamics/math part of the AGX Dynamics API.
AGXPHYSICS_EXPORT agx::Real & rollingResistanceCompliance()
static agxData::ScalarAttributeT< agx::Vec3 > * restitutionAttribute
Contains classes for low level data storage for AGX.
Definition: Container.h:23
UInt32 Index
Definition: Integer.h:52
AGXPHYSICS_EXPORT agx::Real & youngsModulus()
ContactMaterialData * getData()
Abstract description of the data attributes for the Physics.ContactMaterial entity.
static agxData::ScalarAttributeT< agx::Real > * adhesionAttribute
AGXPHYSICS_EXPORT agx::Bool & surfaceFrictionEnabled()
AGXPHYSICS_EXPORT agx::Vec3 & viscosity()
#define CALLABLE
Definition: Object.h:77
AGXPHYSICS_EXPORT agx::Vec3 & friction()
Abstract description of the data attributes for the Referenced entity.
AGXFMI_EXPORT InputVariable_Real * setDamping(agx::Constraint *constraint)
bool isInstanceOf(agxData::EntityModel *model) const
AGXPHYSICS_EXPORT ContactMaterialPtr & operator=(const agxData::EntityPtr &ptr)
static agxData::ScalarAttributeT< agx::Real > * rollingResistanceCoefficientAttribute
Pointer to a entity instance of type Referenced.
static agxData::ScalarAttributeT< agx::Real > * rollingResistanceComplianceAttribute
static agxData::ScalarAttributeT< agx::Real > * adhesiveOverlapAttribute
double Real
Definition: Real.h:42
static agxData::ScalarAttributeT< agx::Vec3 > * frictionAttribute
AGXPHYSICS_EXPORT agx::UInt8 & contactReductionMode()
AGXPHYSICS_EXPORT agx::Vec3 & wireFriction()
static agxData::ScalarAttributeT< agx::Bool > * useContactAreaApproachAttribute
static agxData::ScalarAttributeT< agx::Vec3 > * wireFrictionAttribute
AGXPHYSICS_EXPORT agx::Vec3 & restitution()
AGXPHYSICS_EXPORT agx::Real & rollingResistanceCoefficient()
AGXPHYSICS_EXPORT ContactMaterialInstance instance()
#define DOXYGEN_END_INTERNAL_BLOCK()
Definition: Object.h:102
AGXPHYSICS_EXPORT agx::Real & adhesion()
static agxData::ScalarAttributeT< agx::Physics::MaterialPtr > * material2Attribute
#define DOXYGEN_START_INTERNAL_BLOCK()
Definition: Object.h:101
static agxData::ScalarAttributeT< agx::Real > * dampingAttribute
Pointer to a entity instance of type Physics.ContactMaterial.
static agxData::ScalarAttributeT< agx::Physics::MaterialPtr > * material1Attribute
AGXPHYSICS_EXPORT agx::Real & damping()
static agxData::ScalarAttributeT< agx::Real > * twistingResistanceCoefficientAttribute