Jolt Physics
A multi core friendly Game Physics Engine
Loading...
Searching...
No Matches
ConvexShape::Support Class Referenceabstract

Function that provides an interface for GJK. More...

#include <ConvexShape.h>

Inheritance diagram for ConvexShape::Support:
BoxShape::Box CapsuleShape::CapsuleNoConvex CapsuleShape::CapsuleWithConvex ConvexHullShape::HullNoConvex ConvexHullShape::HullWithConvex ConvexHullShape::HullWithConvexScaled CylinderShape::Cylinder SphereShape::SphereNoConvex SphereShape::SphereWithConvex TaperedCapsuleShape::TaperedCapsule TaperedCylinderShape::TaperedCylinder TriangleShape::TriangleNoConvex TriangleShape::TriangleWithConvex

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
 

Detailed Description

Function that provides an interface for GJK.

Constructor & Destructor Documentation

◆ ~Support()

virtual ConvexShape::Support::~Support ( )
virtualdefault

Warning: Virtual destructor will not be called on this object!

Member Function Documentation

◆ GetConvexRadius()

virtual float ConvexShape::Support::GetConvexRadius ( ) const
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.

◆ GetSupport()

virtual Vec3 ConvexShape::Support::GetSupport ( Vec3Arg  inDirection) const
pure virtual

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