|
GUInity
|
#include <SphereCollider.hpp>
Public Member Functions | |
| SphereCollider () | |
| SphereCollider (float radius, PxVec3 center) | |
| virtual | ~SphereCollider () |
| float | getRadius () |
| void | setRadius (float newRadius) |
| 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 |
SphereCollider uses a sphere as the volume collider. Can either be real physics simulated or trigger only.
| SphereCollider::SphereCollider | ( | ) |
Default Constructor
| SphereCollider::SphereCollider | ( | float | radius, |
| PxVec3 | center = PxVec3(0,0,0) |
||
| ) |
Deserialization Constructor
|
virtual |
Default Destructor
|
overridevirtual |
Clones current component (Prototype Design Pattern)
Implements Collider.
| float SphereCollider::getRadius | ( | ) |
radius Getter
|
virtual |
Init component override. Create a new Sphere Shape in the PhysX scene.
Reimplemented from Collider.
| void SphereCollider::setRadius | ( | float | newRadius | ) |
radius Setter
| [in] | newRadius | the radius of the sphere |
1.8.9.1