AGX Dynamics  2.37.2.0
agxCollide::FallbackConvexCollider< ShapeType1, ShapeType2 > Class Template Reference

This template class can be instantiated to use Convex-Convex for shape pairs where no explicit collider exists. More...

#include <FallbackConvexCollider.h>

+ Inheritance diagram for agxCollide::FallbackConvexCollider< ShapeType1, ShapeType2 >:

Public Member Functions

 FallbackConvexCollider ()
 
virtual ~FallbackConvexCollider ()
 
virtual void _calculateContacts (agx::Physics::Geometry::ShapeInstance shape1, agx::Physics::Geometry::ShapeInstance shape2, const agx::AffineMatrix4x4 &transform1, const agx::AffineMatrix4x4 &transform2, const agx::Vec3 &, const agx::Vec3 &, const agx::Vec3 &, const agx::Vec3 &, bool, LocalContactPointVector &result) override
 

Detailed Description

template<agx::UInt8 ShapeType1, agx::UInt8 ShapeType2>
class agxCollide::FallbackConvexCollider< ShapeType1, ShapeType2 >

This template class can be instantiated to use Convex-Convex for shape pairs where no explicit collider exists.

The requirement for this to work is that:

  • Both shape types implementation of hasSupportFunction() returns true.
  • both shape types have getSupportPoint(const Vec3& dir) implmented

Definition at line 35 of file FallbackConvexCollider.h.

Constructor & Destructor Documentation

◆ FallbackConvexCollider()

template<agx::UInt8 ShapeType1, agx::UInt8 ShapeType2>
agxCollide::FallbackConvexCollider< ShapeType1, ShapeType2 >::FallbackConvexCollider ( )
inline

Definition at line 38 of file FallbackConvexCollider.h.

◆ ~FallbackConvexCollider()

template<agx::UInt8 ShapeType1, agx::UInt8 ShapeType2>
virtual agxCollide::FallbackConvexCollider< ShapeType1, ShapeType2 >::~FallbackConvexCollider ( )
inlinevirtual

Definition at line 39 of file FallbackConvexCollider.h.

Member Function Documentation

◆ _calculateContacts()

template<agx::UInt8 ShapeType1, agx::UInt8 ShapeType2>
virtual void agxCollide::FallbackConvexCollider< ShapeType1, ShapeType2 >::_calculateContacts ( agx::Physics::Geometry::ShapeInstance  shape1,
agx::Physics::Geometry::ShapeInstance  shape2,
const agx::AffineMatrix4x4 &  transform1,
const agx::AffineMatrix4x4 &  transform2,
const agx::Vec3 &  ,
const agx::Vec3 &  ,
const agx::Vec3 &  ,
const agx::Vec3 &  ,
bool  ,
LocalContactPointVector &  result 
)
inlineoverridevirtual

The documentation for this class was generated from the following file: