C# 클래스 SharpNeat.DomainsExtra.Box2D.SimulationWorld

Abstract class for Box2D simulations/worlds within SharpNEAT.
파일 보기 프로젝트 열기: colgreen/sharpneat 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
_simParams SimulationParameters
_world World

공개 메소드들

메소드 설명
InitSimulationWorld ( ) : void

Primary initialisation method. Override this method to do sub-class specific initialisation.

MouseDown ( Vec2 p ) : void

Mouse interaction event.

MouseMove ( Vec2 p ) : void

Mouse interaction event.

MouseUp ( ) : void

Mouse interaction event.

SetDebugDraw ( DebugDraw debugDraw ) : void

Sets a drawing routine. Methods on the provided object are called-back to perform drawing on each update.

SimulationWorld ( ) : Box2DX.Collision

Construct new SimulationWorld.

Step ( ) : void

Perform one simulation timestep; move the simulation forward by the timestep increment duration.

보호된 메소드들

메소드 설명
CreateContactListener ( ) : ContactListener

Create contact listener.

InitSimulationWorld ( SimulationParameters simParams ) : void

Initialise world with the specified SimulationParameters.

PopulateWorld ( ) : void

Add objects to the Box2d world.

비공개 메소드들

메소드 설명
CreateBox2DWorld ( ) : World

Create an empty Box2D world.

DrawMouseJoint ( ) : void

Draw the mouse joint (user interaction via mouse events). This method can be removed to remove the dependency on OpenGL.

메소드 상세

CreateContactListener() 보호된 메소드

Create contact listener.
protected CreateContactListener ( ) : ContactListener
리턴 Box2DX.Dynamics.ContactListener

InitSimulationWorld() 공개 메소드

Primary initialisation method. Override this method to do sub-class specific initialisation.
public InitSimulationWorld ( ) : void
리턴 void

InitSimulationWorld() 보호된 메소드

Initialise world with the specified SimulationParameters.
protected InitSimulationWorld ( SimulationParameters simParams ) : void
simParams SimulationParameters
리턴 void

MouseDown() 공개 메소드

Mouse interaction event.
public MouseDown ( Vec2 p ) : void
p Vec2
리턴 void

MouseMove() 공개 메소드

Mouse interaction event.
public MouseMove ( Vec2 p ) : void
p Vec2
리턴 void

MouseUp() 공개 메소드

Mouse interaction event.
public MouseUp ( ) : void
리턴 void

PopulateWorld() 보호된 추상적인 메소드

Add objects to the Box2d world.
protected abstract PopulateWorld ( ) : void
리턴 void

SetDebugDraw() 공개 메소드

Sets a drawing routine. Methods on the provided object are called-back to perform drawing on each update.
public SetDebugDraw ( DebugDraw debugDraw ) : void
debugDraw DebugDraw
리턴 void

SimulationWorld() 공개 메소드

Construct new SimulationWorld.
public SimulationWorld ( ) : Box2DX.Collision
리턴 Box2DX.Collision

Step() 공개 메소드

Perform one simulation timestep; move the simulation forward by the timestep increment duration.
public Step ( ) : void
리턴 void

프로퍼티 상세

_simParams 보호되어 있는 프로퍼티

High level simulation parameters.
protected SimulationParameters _simParams
리턴 SimulationParameters

_world 보호되어 있는 프로퍼티

The Box2D world.
protected World _world
리턴 World