i6engine  1.0
i6e::api::PhysicsFacade Class Reference

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...
 

Detailed Description

Physics specific functions for the game which targets the whole world - not a single object.

Definition at line 42 of file PhysicsFacade.h.

Constructor & Destructor Documentation

i6e::api::PhysicsFacade::PhysicsFacade ( )
inline

Contructor.

Definition at line 47 of file PhysicsFacade.h.

i6e::api::PhysicsFacade::~PhysicsFacade ( )
inline

Destructor.

Definition at line 52 of file PhysicsFacade.h.

Member Function Documentation

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.

Parameters
[in]i6eVectorvec3Gravity - 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


The documentation for this class was generated from the following file: