RavEngine
Loading...
Searching...
No Matches
RavEngine::ConvexMeshCollider Struct Reference
Inheritance diagram for RavEngine::ConvexMeshCollider:
[legend]
Collaboration diagram for RavEngine::ConvexMeshCollider:
[legend]

Public Member Functions

 ConvexMeshCollider (PhysicsBodyComponent *, Ref< MeshAsset > mesh, Ref< PhysicsMaterial > mat)
 
void DebugDraw (RavEngine::DebugDrawer &dbg, color_t, const RavEngine::Transform &) const override
 
- Public Member Functions inherited from RavEngine::PhysicsCollider
void UpdateFilterData (PhysicsBodyComponent *owner)
 
void SetType (CollisionType)
 
CollisionType GetType () const
 
void SetQueryable (bool)
 
bool GetQueryable () const
 
void SetRelativeTransform (const vector3 &position, const quaternion &rotation)
 
Transformation GetRelativeTransform () const
 

Additional Inherited Members

- Public Types inherited from RavEngine::PhysicsCollider
enum class  CollisionType { Trigger , Collider }
 
- Protected Member Functions inherited from RavEngine::PhysicsCollider
matrix4 CalculateWorldMatrix (const RavEngine::Transform &) const
 
- Protected Attributes inherited from RavEngine::PhysicsCollider
physx::PxShape * collider = nullptr
 
Ref< PhysicsMaterial > material
 

Constructor & Destructor Documentation

◆ ConvexMeshCollider()

ConvexMeshCollider::ConvexMeshCollider ( PhysicsBodyComponent *  owner,
Ref< MeshAsset >  mesh,
Ref< PhysicsMaterial >  mat 
)

Create a Convex Mesh Collider given a MeshAsset physics material

Parameters
meshthe MeshAsset to use
matthe PhysicsMaterial to use

Member Function Documentation

◆ DebugDraw()

void RavEngine::ConvexMeshCollider::DebugDraw ( RavEngine::DebugDrawer &  dbg,
color_t  ,
const RavEngine::Transform &   
) const
inlineoverridevirtual

Reimplemented from RavEngine::PhysicsCollider.


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