![]()  | 
  
    Jolt Physics
    
   A multi core friendly Game Physics Engine 
   | 
 
Function that provides an interface for GJK. More...
#include <ConvexShape.h>
  
Public Member Functions | |
| virtual | ~Support ()=default | 
| Warning: Virtual destructor will not be called on this object!  More... | |
| virtual Vec3 | GetSupport (Vec3Arg inDirection) const =0 | 
| virtual float | GetConvexRadius () const =0 | 
Function that provides an interface for GJK.
      
  | 
  virtualdefault | 
Warning: Virtual destructor will not be called on this object!
      
  | 
  pure virtual | 
Convex radius of shape. Collision detection on penetrating shapes is much more expensive, so you can add a radius around objects to increase the shape. This makes it far less likely that they will actually penetrate.
Implemented in BoxShape::Box, CapsuleShape::CapsuleNoConvex, CapsuleShape::CapsuleWithConvex, ConvexHullShape::HullNoConvex, ConvexHullShape::HullWithConvex, ConvexHullShape::HullWithConvexScaled, CylinderShape::Cylinder, SphereShape::SphereNoConvex, SphereShape::SphereWithConvex, TaperedCapsuleShape::TaperedCapsule, TaperedCylinderShape::TaperedCylinder, TriangleShape::TriangleNoConvex, and TriangleShape::TriangleWithConvex.
Calculate the support vector for this convex shape (includes / excludes the convex radius depending on how this was obtained). Support vector is relative to the center of mass of the shape.
Implemented in BoxShape::Box, CapsuleShape::CapsuleNoConvex, CapsuleShape::CapsuleWithConvex, ConvexHullShape::HullNoConvex, ConvexHullShape::HullWithConvex, ConvexHullShape::HullWithConvexScaled, CylinderShape::Cylinder, SphereShape::SphereNoConvex, SphereShape::SphereWithConvex, TaperedCapsuleShape::TaperedCapsule, TaperedCylinderShape::TaperedCylinder, TriangleShape::TriangleNoConvex, and TriangleShape::TriangleWithConvex.