Table of Contents

Class PhysicsHandler

Namespace
LibGFX.Physics
Assembly
LibGFX.dll

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

bool

FixedTimeStep

The fixed time step for physics updates

public float FixedTimeStep { get; set; }

Property Value

float

Methods

DebugDraw(IRenderDevice)

Debug draws the physics handler

public abstract void DebugDraw(IRenderDevice renderer)

Parameters

renderer IRenderDevice

GetDebugDrawer()

Gets the debug drawer

public abstract DebugDrawer GetDebugDrawer()

Returns

DebugDrawer

HasDebugDrawer()

Determines if the physics handler has a debug drawer

public abstract bool HasDebugDrawer()

Returns

bool

ManageElement(PhysicsBehavior, int, int)

Manages a physics element

public abstract void ManageElement(PhysicsBehavior physicsBehavior, int collisionGroup = -1, int collisionMask = -1)

Parameters

physicsBehavior PhysicsBehavior
collisionGroup int
collisionMask int

Process(BaseScene)

Processes the physics handler

public abstract void Process(BaseScene scene)

Parameters

scene BaseScene

RemoveElement(PhysicsBehavior)

Removes a physics element

public abstract void RemoveElement(PhysicsBehavior physicsBehavior)

Parameters

physicsBehavior PhysicsBehavior

SetDebugDrawer(DebugDrawer)

Sets the debug drawer

public abstract void SetDebugDrawer(DebugDrawer debugDrawer)

Parameters

debugDrawer DebugDrawer