#include <RigidStatic.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 |
|
RigidStatic is the component that adds real physics simulation to an Actor. It's static and can be moved by the Game but will never be moved due to physics simulation
RigidStatic::RigidStatic |
( |
| ) |
|
RigidStatic::~RigidStatic |
( |
| ) |
|
|
virtual |
shared_ptr< Component > RigidStatic::clone |
( |
| ) |
|
|
overridevirtual |
void RigidStatic::destroy |
( |
| ) |
|
|
overridevirtual |
PxRigidDynamic * RigidStatic::getRigidDynamic |
( |
| ) |
|
physxRigidBody getter
- Returns
- pointer to PhysX RigidBody
void RigidStatic::init |
( |
| ) |
|
|
overridevirtual |
Component init override. Creates a RigidDynamic body in the PhysX scene and sets it as Kinematic by default
Reimplemented from Component.
void RigidStatic::setActive |
( |
bool |
isActive | ) |
|
|
overridevirtual |
Component setActive override. Disables visualization and physics simulation in the PhysX scene
Reimplemented from Component.
void RigidStatic::tick |
( |
float |
deltaSeconds | ) |
|
|
overridevirtual |
Component tick override. Updates the PhysX scene with the Actor transform
- Parameters
-
[in] | deltaSeconds | last frame duration |
Reimplemented from Component.
The documentation for this class was generated from the following files:
- /Users/guilherme_cunha/Dev/GITHUB/GUInity/Source/RigidStatic.hpp
- /Users/guilherme_cunha/Dev/GITHUB/GUInity/Source/RigidStatic.cpp