#include <EditorCollider.hpp>
|
static void | addObserver (shared_ptr< Observer > observer) |
|
static void | removeObserver (shared_ptr< Observer > observer) |
|
void | setCopyMode (bool initWithData) |
|
static void | notify (ComponentEventType type, shared_ptr< Component > component, bool isEditor) |
|
static void | notify (ActorEventType type, shared_ptr< Actor > actor, bool isEditor) |
|
bool | initWithData |
|
bool | isActive |
|
EditorCollider is a component used only by editor actors. They're used for queries only, so that when the user clicks on whatever Actor in the scene, we can find it using PhysX queries. The basic difference between the EditorCollider and the regular Collider is that this one has a reference to the real Game Actor.
EditorCollider::EditorCollider |
( |
| ) |
|
|
inline |
virtual EditorCollider::~EditorCollider |
( |
| ) |
|
|
inlinevirtual |
Default Destructor. Virtual because inherits from Component
shared_ptr< Component > EditorCollider::clone |
( |
| ) |
|
|
overridevirtual |
Clones current component (Prototype Design Pattern)
- Returns
- nullptr, EditorColliders are not supposed to be cloned
Implements Component.
shared_ptr< Actor > EditorCollider::getGameActor |
( |
| ) |
|
PxRigidDynamic * EditorCollider::getRigidStatic |
( |
| ) |
|
void EditorCollider::init |
( |
| ) |
|
|
overridevirtual |
Component init override. Initializes the rigid body in the PhysX scene.
Component tick override. Updates the fake collider position and rotation to match the real Game Actor
Reimplemented from Component.
void EditorCollider::setGameActor |
( |
shared_ptr< Actor > |
gameActor | ) |
|
void EditorCollider::tick |
( |
float |
deltaSeconds | ) |
|
|
overridevirtual |
Component tick override. Updates the fake collider position and rotation to match the real Game Actor
Component init override. Initializes the rigid body in the PhysX scene.
Reimplemented from Component.
The documentation for this class was generated from the following files:
- /Users/guilherme_cunha/Dev/GITHUB/GUInity/Source/EditorCollider.hpp
- /Users/guilherme_cunha/Dev/GITHUB/GUInity/Source/EditorCollider.cpp