Class PhysicsHandler3D
Represents a 3D physics handler
public class PhysicsHandler3D : PhysicsHandler
- Inheritance
-
PhysicsHandler3D
- Inherited Members
Constructors
PhysicsHandler3D(Vector3)
Creates a new 3D physics handler
public PhysicsHandler3D(Vector3 gravity)
Parameters
gravityVector3
Properties
PhysicsWorld
The physics world
public DiscreteDynamicsWorld PhysicsWorld { get; set; }
Property Value
- DiscreteDynamicsWorld
Methods
DebugDraw(IRenderDevice)
Debug draws the physics handler
public override void DebugDraw(IRenderDevice renderer)
Parameters
rendererIRenderDevice
GetDebugDrawer()
Gets the debug drawer
public override DebugDrawer GetDebugDrawer()
Returns
HasDebugDrawer()
Determines if the physics handler has a debug drawer
public override bool HasDebugDrawer()
Returns
ManageElement(PhysicsBehavior, int, int)
Manages a physics element
public override void ManageElement(PhysicsBehavior physicsBehavior, int collisionGroup = -1, int collisionMask = -1)
Parameters
physicsBehaviorPhysicsBehaviorcollisionGroupintcollisionMaskint
Process(BaseScene)
Processes the physics handler
public override void Process(BaseScene scene)
Parameters
sceneBaseScene
RemoveElement(PhysicsBehavior)
Removes a physics element
public override void RemoveElement(PhysicsBehavior physicsBehavior)
Parameters
physicsBehaviorPhysicsBehavior
SetDebugDrawer(DebugDrawer)
Sets the debug drawer
public override void SetDebugDrawer(DebugDrawer debugDrawer)
Parameters
debugDrawerDebugDrawer