|
GUInity
|
#include <BoxCollider.hpp>
Public Member Functions | |
| BoxCollider () | |
| BoxCollider (PxVec3 halfExtent, PxVec3 center=PxVec3(0, 0, 0)) | |
| virtual | ~BoxCollider () |
| virtual void | init () |
| virtual shared_ptr< Component > | clone () override |
| virtual shared_ptr< ComponentDescription > | getComponentDescription () 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< PhysicsMaterial > | getPhysicsMaterial () |
Public Member Functions inherited from Component | |
| Component () | |
| virtual | ~Component () |
| virtual void | tick (float deltaSecods) |
| shared_ptr< Actor > | getActor () |
| 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< PhysicsMaterial > | physicsMaterial |
| bool | isTrigger |
| bool | isQueryOnly |
Protected Attributes inherited from Component | |
| bool | initWithData |
| bool | isActive |
BoxCollider is an AABB collider Component. Can either be real physics simulated or trigger only.
| BoxCollider::BoxCollider | ( | ) |
Default Constructor
| BoxCollider::BoxCollider | ( | PxVec3 | halfExtent, |
| PxVec3 | center = PxVec3(0,0,0) |
||
| ) |
Deserialization Constructor
|
virtual |
Default Destructor
|
overridevirtual |
Clones current component (Prototype Design Pattern)
Implements Collider.
|
virtual |
Init component override. Create a new Box Shape in the PhysX scene.
Reimplemented from Collider.
1.8.9.1