16#define TIMESOURCE_PHYSICS uint32_t('PHTS')
19#define PHYSICS_RATE 0.016
__DeclareClass(RefCounted)
A FeatureUnit is an encapsulated feature which can be added to an application.
Definition featureunit.h:34
Definition frameevent.h:53
A container of entities, their components, and processors.
Definition world.h:92
Sets up and interfaces with the physics subsystem.
Definition physicsfeatureunit.h:26
int debugDrawPhysicsLastValue
Definition physicsfeatureunit.h:57
IndexT SceneForWorld(Game::World *world)
returns the physics scene belonging to a game world
Definition physicsfeatureunit.cc:202
void OnActivate()
Called upon activation of feature unit.
Definition physicsfeatureunit.cc:66
Game::FrameEvent * physicsEvent
the fixed frame event the physics step runs on
Definition physicsfeatureunit.h:54
Core::CVar * cl_debug_draw_physics
Definition physicsfeatureunit.h:59
void OnBeforeCleanup(Game::World *world)
called from within GameServer::NotifyBeforeCleanup()
Definition physicsfeatureunit.cc:183
virtual void OnRenderDebug()
called when game debug visualization is on
Definition physicsfeatureunit.cc:215
void OnDeactivate()
Called upon deactivation of feature unit.
Definition physicsfeatureunit.cc:168
void OnAttach() override
called from GameServer::AttachGameFeature()
Definition physicsfeatureunit.cc:42
Util::Dictionary< Game::World *, IndexT > physicsWorlds
Definition physicsfeatureunit.h:56
A collection of key/value pairs with quick value retrieval by key at roughly O(log n).
Definition dictionary.h:35
Contains API for creating, writing to, and reading from a Core::CVar.
Definition charactermanager.cc:22
#define __DeclareSingleton(type)
Definition osxsingleton.h:24
A console variable.
Definition cvar.cc:24
int IndexT
Definition types.h:49