C# Class Henge3D.Physics.PhysicsManager

Inheritance: Microsoft.Xna.Framework.GameComponent, IDisposable
Datei anzeigen Open project: bretternst/Henge3D Class Usage Examples

Private Properties

Property Type Description
BuildIslands void
ProcessIslands void

Public Methods

Method Description
Add ( Henge3D.Physics.Constraint constraint ) : void

Add a constraint to the physics world. A constraint may affect one or two bodies.

Add ( Henge3D.Physics.Contraption contraption ) : void

Add a contraption to the physics world.

Add ( IForceGenerator generator ) : void

Add a force generator to the physics world.

Add ( Henge3D.Physics.RigidBody body ) : void

Add a body to the physics world.

Clear ( ) : void

Clears all bodies and force generators.

Initialize ( ) : void

Initialize the physics implementation.

Integrate ( float timeStep ) : void

Integrates the entire system for a single time step. This method applies forces to objects, performs collision detection, and solves all constraints. Finally, the object positions are updated.

PhysicsManager ( Microsoft.Xna.Framework.Game game ) : System
Remove ( Henge3D.Physics.Constraint constraint ) : bool

Removes a constraint from the physics world.

Remove ( IForceGenerator generator ) : bool

Remove a force generator from the physics world.

Remove ( Henge3D.Physics.RigidBody body ) : bool

Remove a body from the physics world.

Remove ( Henge3D.Physics.Contraption contraption ) : void

Remove a contraption from the physics world.

Update ( GameTime gameTime ) : void

Standard XNA Update method. If the IsIntegratedOnUpdate property is set to true, the engine will automatically move forward one step.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Private Methods

Method Description
BuildIslands ( ) : void
ProcessIslands ( ) : void

Method Details

Add() public method

Add a constraint to the physics world. A constraint may affect one or two bodies.
public Add ( Henge3D.Physics.Constraint constraint ) : void
constraint Henge3D.Physics.Constraint The constraint to add.
return void

Add() public method

Add a contraption to the physics world.
public Add ( Henge3D.Physics.Contraption contraption ) : void
contraption Henge3D.Physics.Contraption The contraption to add.
return void

Add() public method

Add a force generator to the physics world.
public Add ( IForceGenerator generator ) : void
generator IForceGenerator The generator to add.
return void

Add() public method

Add a body to the physics world.
public Add ( Henge3D.Physics.RigidBody body ) : void
body Henge3D.Physics.RigidBody The body to add. It must not already be managed by a physics implementation.
return void

Clear() public method

Clears all bodies and force generators.
public Clear ( ) : void
return void

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

Initialize() public method

Initialize the physics implementation.
public Initialize ( ) : void
return void

Integrate() public method

Integrates the entire system for a single time step. This method applies forces to objects, performs collision detection, and solves all constraints. Finally, the object positions are updated.
public Integrate ( float timeStep ) : void
timeStep float The amount of time, in seconds, to step the simulation forward.
return void

PhysicsManager() public method

public PhysicsManager ( Microsoft.Xna.Framework.Game game ) : System
game Microsoft.Xna.Framework.Game
return System

Remove() public method

Removes a constraint from the physics world.
public Remove ( Henge3D.Physics.Constraint constraint ) : bool
constraint Henge3D.Physics.Constraint The constraint to remove.
return bool

Remove() public method

Remove a force generator from the physics world.
public Remove ( IForceGenerator generator ) : bool
generator IForceGenerator The generator to remove.
return bool

Remove() public method

Remove a body from the physics world.
public Remove ( Henge3D.Physics.RigidBody body ) : bool
body Henge3D.Physics.RigidBody The body to remove.
return bool

Remove() public method

Remove a contraption from the physics world.
public Remove ( Henge3D.Physics.Contraption contraption ) : void
contraption Henge3D.Physics.Contraption The contraption to remove.
return void

Update() public method

Standard XNA Update method. If the IsIntegratedOnUpdate property is set to true, the engine will automatically move forward one step.
public Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime The current game time information.
return void