C# Class SharpNeat.DomainsExtra.SinglePoleBalancingBox2d.SinglePoleBalancingWorld

Box2D world for the single pole balancing domain.
Inheritance: SharpNeat.DomainsExtra.Box2D.SimulationWorld
Afficher le fichier Open project: colgreen/sharpneat Class Usage Examples

Méthodes publiques

Méthode Description
InitSimulationWorld ( ) : void

Inititialise world.

SetCartForce ( float n ) : void

Set horizontal force in newtons to apply to cart.

SinglePoleBalancingWorld ( ) : Box2DX.Collision

Construct with default world settings.

SinglePoleBalancingWorld ( float trackLength, float initialPoleAngle ) : Box2DX.Collision

Construct with specified world settings.

Méthodes protégées

Méthode Description
PopulateWorld ( ) : void

Add objects to the Box2d world.

Private Methods

Méthode Description
CreatePole ( Vec2 basePose, float angle, float radius, float friction, float restitution, float density, ushort layers ) : Body

Method Details

InitSimulationWorld() public méthode

Inititialise world.
public InitSimulationWorld ( ) : void
Résultat void

PopulateWorld() protected méthode

Add objects to the Box2d world.
protected PopulateWorld ( ) : void
Résultat void

SetCartForce() public méthode

Set horizontal force in newtons to apply to cart.
public SetCartForce ( float n ) : void
n float
Résultat void

SinglePoleBalancingWorld() public méthode

Construct with default world settings.
public SinglePoleBalancingWorld ( ) : Box2DX.Collision
Résultat Box2DX.Collision

SinglePoleBalancingWorld() public méthode

Construct with specified world settings.
public SinglePoleBalancingWorld ( float trackLength, float initialPoleAngle ) : Box2DX.Collision
trackLength float
initialPoleAngle float
Résultat Box2DX.Collision