i6engine
1.0
|
Physics specific functions for the game which targets the whole world - not a single object. More...
#include <D:/Projekte/i6engine/libs/i6engine-modules/include/i6engine/api/facades/PhysicsFacade.h>
Public Member Functions | |
PhysicsFacade () | |
Contructor. More... | |
~PhysicsFacade () | |
Destructor. More... | |
void | setGravity (const math::i6eVector &vec3Gravity) const |
Sets the gravity of the world. More... | |
void | registerNotifyCallback (const boost::function< void(int64_t)> &f) |
register callback for notifying IDs, call only from PhysicsController More... | |
void | notifyNewID (int64_t id) |
notifies new id in subsystem More... | |
void | resetSubSystem () |
resets the subsystem to it's defaults More... | |
void | pause () const |
pauses the subsystem More... | |
void | unpause () const |
unpauses the subsystem More... | |
Physics specific functions for the game which targets the whole world - not a single object.
Definition at line 42 of file PhysicsFacade.h.
|
inline |
Contructor.
Definition at line 47 of file PhysicsFacade.h.
|
inline |
Destructor.
Definition at line 52 of file PhysicsFacade.h.
void i6e::api::PhysicsFacade::notifyNewID | ( | int64_t | id | ) |
notifies new id in subsystem
void i6e::api::PhysicsFacade::pause | ( | ) | const |
pauses the subsystem
void i6e::api::PhysicsFacade::registerNotifyCallback | ( | const boost::function< void(int64_t)> & | f | ) |
register callback for notifying IDs, call only from PhysicsController
void i6e::api::PhysicsFacade::resetSubSystem | ( | ) |
resets the subsystem to it's defaults
void i6e::api::PhysicsFacade::setGravity | ( | const math::i6eVector & | vec3Gravity | ) | const |
Sets the gravity of the world.
[in] | i6eVector | vec3Gravity - The "force" direction. The usual gravity is (0, -y, 0) where -y is the value of the desired gravity (9.8 in rl) |
void i6e::api::PhysicsFacade::unpause | ( | ) | const |
unpauses the subsystem