C# Class Henge3D.Physics.PhysicsManager

Inheritance: Microsoft.Xna.Framework.GameComponent, IDisposable
Afficher le fichier Open project: bretternst/Henge3D Class Usage Examples

Private Properties

Свойство Type Description
BuildIslands void
ProcessIslands void

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Private Methods

Méthode Description
BuildIslands ( ) : void
ProcessIslands ( ) : void

Method Details

Add() public méthode

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.
Résultat void

Add() public méthode

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

Add() public méthode

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

Add() public méthode

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.
Résultat void

Clear() public méthode

Clears all bodies and force generators.
public Clear ( ) : void
Résultat void

Dispose() protected méthode

protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

Initialize() public méthode

Initialize the physics implementation.
public Initialize ( ) : void
Résultat void

Integrate() public méthode

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.
Résultat void

PhysicsManager() public méthode

public PhysicsManager ( Microsoft.Xna.Framework.Game game ) : System
game Microsoft.Xna.Framework.Game
Résultat System

Remove() public méthode

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

Remove() public méthode

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

Remove() public méthode

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

Remove() public méthode

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

Update() public méthode

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.
Résultat void