|
GUInity
|
#include <CapsuleCollider.hpp>
Public Member Functions | |
| CapsuleCollider () | |
| CapsuleCollider (RotateAxis orientation, float halfHeight, float radius, PxVec3 center) | |
| ~CapsuleCollider () | |
| void | setOrientation (RotateAxis orientation) |
| RotateAxis | getOrientation () |
| void | setHeight (float height) |
| float | getHeight () |
| void | setRadius (float radius) |
| float | getRadius () |
| 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 |
CapsuleCollider is a volume collider with radius, height and orientation. Can either be real physics simulated or trigger only.
| CapsuleCollider::CapsuleCollider | ( | ) |
Default Constructor
| CapsuleCollider::CapsuleCollider | ( | RotateAxis | orientation, |
| float | halfHeight, | ||
| float | radius, | ||
| PxVec3 | center = PxVec3(0,0,0) |
||
| ) |
Deserialization Constructor
| CapsuleCollider::~CapsuleCollider | ( | ) |
Default Destructor
|
overridevirtual |
Clones current component (Prototype Design Pattern)
Implements Collider.
| float CapsuleCollider::getHeight | ( | ) |
height Getter
| RotateAxis CapsuleCollider::getOrientation | ( | ) |
orientation Getter
| float CapsuleCollider::getRadius | ( | ) |
radius Getter
|
virtual |
| void CapsuleCollider::setHeight | ( | float | height | ) |
height Setter
| void CapsuleCollider::setOrientation | ( | RotateAxis | orientation | ) |
orientation Setter
| void CapsuleCollider::setRadius | ( | float | radius | ) |
radius Setter
1.8.9.1