PhysicsPlugin

Engine/source/T3D/physics/physicsPlugin.h

More...

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

Delegate method for debug drawing.

Public Static Functions

bool
activate(const char * library)

Returns the active physics plugin.

Public Functions

bool
createWorld(const String & worldName)

Cleans up, deactivates, and deletes the plugin.

enableDebugDraw(bool enabled)
enableSimulation(const String & worldName, bool enable)

Returns the physics cleanup set.

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.

see:

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.