GUInity
Public Member Functions | List of all members
MeshCollider Class Reference

#include <MeshCollider.hpp>

Inheritance diagram for MeshCollider:
Collider Component

Public Member Functions

 MeshCollider ()
 
virtual ~MeshCollider ()
 
virtual void init ()
 
virtual void tick (float deltaSeconds) override
 
virtual shared_ptr< Componentclone () override
 
virtual shared_ptr< ComponentDescriptiongetComponentDescription () override
 
virtual void deserialize (shared_ptr< ComponentDescription > desc) override
 
- Public Member Functions inherited from Collider
 Collider ()
 
virtual ~Collider ()
 
void setTrigger (bool isTrigger)
 
bool getIsTrigger ()
 
void setQueryOnly (bool isQueryOnly)
 
bool getQueryOnly ()
 
virtual void destroy () override
 
virtual void awake () override
 
virtual void setActive (bool isActive) override
 
void setPhysicsMaterial (const shared_ptr< PhysicsMaterial > physMaterial)
 
shared_ptr< PhysicsMaterialgetPhysicsMaterial ()
 
- Public Member Functions inherited from Component
 Component ()
 
virtual ~Component ()
 
shared_ptr< ActorgetActor ()
 
void setActor (weak_ptr< Actor > actor)
 

Additional Inherited Members

- Protected Member Functions inherited from Component
void setCopyMode (bool initWithData)
 
- Protected Attributes inherited from Collider
PxVec3 center
 
PxShape * shape
 
shared_ptr< PhysicsMaterialphysicsMaterial
 
bool isTrigger
 
bool isQueryOnly
 
- Protected Attributes inherited from Component
bool initWithData
 
bool isActive
 

Detailed Description

BoxCollider uses a Mesh as the volume collider. Can either be real physics simulated or trigger only.

Constructor & Destructor Documentation

MeshCollider::MeshCollider ( )

Default Constructor

MeshCollider::~MeshCollider ( )
virtual

Default Destructor. Virtual because inherits from Collider

Member Function Documentation

shared_ptr< Component > MeshCollider::clone ( )
overridevirtual

Clones current component (Prototype Design Pattern)

Returns
shared_ptr to cloned MeshCollider Component

Implements Collider.

void MeshCollider::init ( )
virtual

Init component override. Create a new Mesh Shape in the PhysX scene.

Reimplemented from Collider.

void MeshCollider::tick ( float  deltaSeconds)
overridevirtual

Component tick override. Updates the scale of the Mesh Shape in the PhysX scene.

Reimplemented from Component.


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