#include <Collider.hpp>
Collider is a component that adds either simulates real physics for an Actor or allows it to behave like a volume trigger. Collider is an abstract parent class for all the Collider types (SphereCollider, BoxCollider, CapsuleCollider and MeshCollider)
virtual Collider::~Collider |
( |
| ) |
|
|
inlinevirtual |
Default Destructor. Virtual because it's parent class
virtual void Collider::awake |
( |
| ) |
|
|
inlineoverridevirtual |
virtual shared_ptr<Component> Collider::clone |
( |
| ) |
|
|
overridepure virtual |
void Collider::destroy |
( |
| ) |
|
|
overridevirtual |
bool Collider::getIsTrigger |
( |
| ) |
|
isTrigger getter
- Returns
- true if it's just a trigger, false if it physics simulated
bool Collider::getQueryOnly |
( |
| ) |
|
isQueryOnly getter
- Returns
- true if this object is only used in queries, false otherwise
isQueryOnly getter
- Parameters
-
[in] | queryOnly | true if this object is only used in queries, false otherwise |
void Collider::setActive |
( |
bool |
isActive | ) |
|
|
overridevirtual |
void Collider::setPhysicsMaterial |
( |
const shared_ptr< PhysicsMaterial > |
physMaterial | ) |
|
physicsMaterial getter
- Parameters
-
void Collider::setQueryOnly |
( |
bool |
isQueryOnly | ) |
|
isQueryOnly getter
- Parameters
-
[in] | queryOnly | true if this object is only used in queries, false otherwise |
isQueryOnly getter
- Returns
- true if this object is only used in queries, false otherwise
void Collider::setTrigger |
( |
bool |
isTrigger | ) |
|
isTrigger setter
- Parameters
-
[in] | isTrigger | - true if it's just a trigger, false if it physics simulated |
The center of the collider
bool Collider::isQueryOnly |
|
protected |
Is this collider used for queries only?
Is this collider a trigger or should it simulate real world physics?
The physics material that determines the behaviour of the physics shape
The PhysX Shape of the collider
The documentation for this class was generated from the following files:
- /Users/guilherme_cunha/Dev/GITHUB/GUInity/Source/Collider.hpp
- /Users/guilherme_cunha/Dev/GITHUB/GUInity/Source/Collider.cpp