C# Class SharpNeat.DomainsExtra.SinglePoleBalancingBox2d.SinglePoleBalancingWorld

Box2D world for the single pole balancing domain.
Inheritance: SharpNeat.DomainsExtra.Box2D.SimulationWorld
ファイルを表示 Open project: colgreen/sharpneat Class Usage Examples

Public Methods

Method 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.

Protected Methods

Method Description
PopulateWorld ( ) : void

Add objects to the Box2d world.

Private Methods

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

Method Details

InitSimulationWorld() public method

Inititialise world.
public InitSimulationWorld ( ) : void
return void

PopulateWorld() protected method

Add objects to the Box2d world.
protected PopulateWorld ( ) : void
return void

SetCartForce() public method

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

SinglePoleBalancingWorld() public method

Construct with default world settings.
public SinglePoleBalancingWorld ( ) : Box2DX.Collision
return Box2DX.Collision

SinglePoleBalancingWorld() public method

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