PhysicsPlugin
Engine/source/T3D/physics/physicsPlugin.h
Protected Static Attributes
The current active physics plugin.
Protected Attributes
A SimSet of objects to delete before the physics reset/restore event occurs.
Public Static Attributes
bool
Allow gpu acceleration if supported.
bool
Note this should go away when we have "real" singleplayer.
Number of threads to use if supported by the plugin.
Protected Static Functions
_debugDraw(SceneManager * graph, const SceneRenderState * state)
Delegate method for debug drawing.
Public Static Functions
Returns the active physics plugin.
bool
bool
Public Functions
bool
createWorld(const String & worldName)
Cleans up, deactivates, and deletes the plugin.
destroyWorld(const String & worldName)
enableDebugDraw(bool enabled)
enableSimulation(const String & worldName, bool enable)
SimSet *
Returns the physics cleanup set.
bool
setTimeScale(const F32 timeScale)
Protected Functions
_onDebugDrawEnabled(bool enabled)
Overload this to toggle any physics engine specific stuff when debug rendering is enabled or disabled.
Detailed Description
Protected Static Attributes
String smClientWorldName
PhysicsResetSignal smPhysicsResetSignal
String smServerWorldName
PhysicsPlugin * smSingleton
The current active physics plugin.
Protected Attributes
SimObjectPtr< SimSet > mPhysicsCleanup
A SimSet of objects to delete before the physics reset/restore event occurs.
Map< StringNoCase, PhysicsWorld * > mPhysicsWorldLookup
Public Static Attributes
bool smGpuAccelerationAllowed
Allow gpu acceleration if supported.
bool smSinglePlayer
Note this should go away when we have "real" singleplayer.
U32 smThreadCount
Number of threads to use if supported by the plugin.
Protected Static Functions
_debugDraw(SceneManager * graph, const SceneRenderState * state)
Delegate method for debug drawing.
Public Static Functions
activate(const char * library)
getPhysicsResetSignal()
getSingleton()
Returns the active physics plugin.
PHYSICSPLUGIN
getThreadCount()
gpuAccelerationAllowed()
isSinglePlayer()
Public Functions
PhysicsPlugin()
~PhysicsPlugin()
createBody()
Reimplemented by: BtPlugin, Px3Plugin
createCollision()
Reimplemented by: BtPlugin, Px3Plugin
createPlayer()
Reimplemented by: BtPlugin, Px3Plugin
createWorld(const String & worldName)
Reimplemented by: BtPlugin, Px3Plugin
destroyPlugin()
Cleans up, deactivates, and deletes the plugin.
Reimplemented by: BtPlugin, Px3Plugin
destroyWorld(const String & worldName)
Reimplemented by: BtPlugin, Px3Plugin
enableDebugDraw(bool enabled)
enableSimulation(const String & worldName, bool enable)
Reimplemented by: BtPlugin, Px3Plugin
getPhysicsCleanup()
Returns the physics cleanup set.
getTimeScale()
Reimplemented by: BtPlugin, Px3Plugin
getWorld(const String & worldName)
Reimplemented by: BtPlugin, Px3Plugin
isSimulationEnabled()
Reimplemented by: BtPlugin, Px3Plugin
reset()
Reimplemented by: BtPlugin, Px3Plugin
setTimeScale(const F32 timeScale)
Reimplemented by: BtPlugin, Px3Plugin
Protected Functions
_onDebugDrawEnabled(bool enabled)
Overload this to toggle any physics engine specific stuff when debug rendering is enabled or disabled.