Jolt Physics
A multi core friendly Game Physics Engine
Loading...
Searching...
No Matches
TransformedConvexObject< ConvexObject > Struct Template Reference

#include <ConvexSupport.h>

Public Member Functions

 TransformedConvexObject (Mat44Arg inTransform, const ConvexObject &inObject)
 Create transformed convex object. More...
 
Vec3 GetSupport (Vec3Arg inDirection) const
 Calculate the support vector for this convex shape. More...
 
template<class VERTEX_ARRAY >
void GetSupportingFace (Vec3Arg inDirection, VERTEX_ARRAY &outVertices) const
 Get the vertices of the face that faces inDirection the most. More...
 

Public Attributes

Mat44 mTransform
 
const ConvexObject & mObject
 

Detailed Description

template<typename ConvexObject>
struct TransformedConvexObject< ConvexObject >

Helper functions to get the support point for a convex object Structure that transforms a convex object (supports only uniform scaling)

Constructor & Destructor Documentation

◆ TransformedConvexObject()

template<typename ConvexObject >
TransformedConvexObject< ConvexObject >::TransformedConvexObject ( Mat44Arg  inTransform,
const ConvexObject &  inObject 
)
inline

Create transformed convex object.

Member Function Documentation

◆ GetSupport()

template<typename ConvexObject >
Vec3 TransformedConvexObject< ConvexObject >::GetSupport ( Vec3Arg  inDirection) const
inline

Calculate the support vector for this convex shape.

◆ GetSupportingFace()

template<typename ConvexObject >
template<class VERTEX_ARRAY >
void TransformedConvexObject< ConvexObject >::GetSupportingFace ( Vec3Arg  inDirection,
VERTEX_ARRAY &  outVertices 
) const
inline

Get the vertices of the face that faces inDirection the most.

Member Data Documentation

◆ mObject

template<typename ConvexObject >
const ConvexObject& TransformedConvexObject< ConvexObject >::mObject

◆ mTransform

template<typename ConvexObject >
Mat44 TransformedConvexObject< ConvexObject >::mTransform

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