Class PhysicsHandler
Represents a physics handler
public abstract class PhysicsHandler
- Inheritance
-
PhysicsHandler
- Derived
- Inherited Members
Properties
DebugPhysics
The debug physics flag
public bool DebugPhysics { get; set; }
Property Value
FixedTimeStep
The fixed time step for physics updates
public float FixedTimeStep { get; set; }
Property Value
Methods
DebugDraw(IRenderDevice)
Debug draws the physics handler
public abstract void DebugDraw(IRenderDevice renderer)
Parameters
rendererIRenderDevice
GetDebugDrawer()
Gets the debug drawer
public abstract DebugDrawer GetDebugDrawer()
Returns
HasDebugDrawer()
Determines if the physics handler has a debug drawer
public abstract bool HasDebugDrawer()
Returns
ManageElement(PhysicsBehavior, int, int)
Manages a physics element
public abstract void ManageElement(PhysicsBehavior physicsBehavior, int collisionGroup = -1, int collisionMask = -1)
Parameters
physicsBehaviorPhysicsBehaviorcollisionGroupintcollisionMaskint
Process(BaseScene)
Processes the physics handler
public abstract void Process(BaseScene scene)
Parameters
sceneBaseScene
RemoveElement(PhysicsBehavior)
Removes a physics element
public abstract void RemoveElement(PhysicsBehavior physicsBehavior)
Parameters
physicsBehaviorPhysicsBehavior
SetDebugDrawer(DebugDrawer)
Sets the debug drawer
public abstract void SetDebugDrawer(DebugDrawer debugDrawer)
Parameters
debugDrawerDebugDrawer