C# Class Protogame.DefaultPhysicsEngine

The default implementation of a physics engine.
Inheritance: IPhysicsEngine
Mostrar archivo Open project: RedpointGames/Protogame

Public Methods

Method Description
DebugRender ( IGameContext gameContext, IRenderContext renderContext ) : void
DefaultPhysicsEngine ( IPhysicsFactory physicsFactory, IProfiler profiler ) : System
GetInternalPhysicsWorld ( ) : JitterWorld
GetPhysicsMetrics ( ) : PhysicsMetrics
RegisterRigidBodyForHasMatrixInCurrentWorld ( RigidBody rigidBody, IHasTransform hasTransform, bool staticAndImmovable ) : void
UnregisterRigidBodyForHasMatrixInCurrentWorld ( RigidBody rigidBody, IHasTransform hasTransform ) : void
Update ( IGameContext gameContext, IUpdateContext updateContext ) : void
Update ( IServerContext serverContext, IUpdateContext updateContext ) : void

Method Details

DebugRender() public method

public DebugRender ( IGameContext gameContext, IRenderContext renderContext ) : void
gameContext IGameContext
renderContext IRenderContext
return void

DefaultPhysicsEngine() public method

public DefaultPhysicsEngine ( IPhysicsFactory physicsFactory, IProfiler profiler ) : System
physicsFactory IPhysicsFactory
profiler IProfiler
return System

GetInternalPhysicsWorld() public method

public GetInternalPhysicsWorld ( ) : JitterWorld
return Jitter.JitterWorld

GetPhysicsMetrics() public method

public GetPhysicsMetrics ( ) : PhysicsMetrics
return PhysicsMetrics

RegisterRigidBodyForHasMatrixInCurrentWorld() public method

public RegisterRigidBodyForHasMatrixInCurrentWorld ( RigidBody rigidBody, IHasTransform hasTransform, bool staticAndImmovable ) : void
rigidBody RigidBody
hasTransform IHasTransform
staticAndImmovable bool
return void

UnregisterRigidBodyForHasMatrixInCurrentWorld() public method

public UnregisterRigidBodyForHasMatrixInCurrentWorld ( RigidBody rigidBody, IHasTransform hasTransform ) : void
rigidBody RigidBody
hasTransform IHasTransform
return void

Update() public method

public Update ( IGameContext gameContext, IUpdateContext updateContext ) : void
gameContext IGameContext
updateContext IUpdateContext
return void

Update() public method

public Update ( IServerContext serverContext, IUpdateContext updateContext ) : void
serverContext IServerContext
updateContext IUpdateContext
return void