/// <summary> /// Create a Box2D simulation world. /// </summary> protected override SimulationWorld CreateSimulationWorld() { // Init Box2D world. WalkerWorld world = new WalkerWorld(new XorShiftRandom()); world.InitSimulationWorld(); // Create an interface onto the walker. WalkerInterface walkerIface = world.CreateWalkerInterface(); // Create a neural net controller for the walker. _walkerController = new NeuralNetController(walkerIface, _box, world.SimulationParameters._frameRate); return world; }
/// <summary> /// Create a Box2D simulation world. /// </summary> protected override SimulationWorld CreateSimulationWorld() { // Init Box2D world. WalkerWorld world = new WalkerWorld(); world.InitSimulationWorld(); // Create an interface onto the walker. WalkerInterface walkerIface = world.CreateWalkerInterface(); // Create a neural net controller for the walker. _walkerController = new NeuralNetController(walkerIface, _box); return world; }
/// <summary> /// Create a Box2D simulation world. /// </summary> protected override SimulationWorld CreateSimulationWorld() { // Init Box2D world. WalkerWorld world = new WalkerWorld(new XorShiftRandom()); world.InitSimulationWorld(); // Create an interface onto the walker. WalkerInterface walkerIface = world.CreateWalkerInterface(); // Create a neural net controller for the walker. _walkerController = new NeuralNetController(walkerIface, _box, world.SimulationParameters._frameRate); return(world); }
/// <summary> /// Create a Box2D simulation world. /// </summary> protected override SimulationWorld CreateSimulationWorld() { // Init Box2D world. WalkerWorld world = new WalkerWorld(); world.InitSimulationWorld(); // Create an interface onto the walker. WalkerInterface walkerIface = world.CreateWalkerInterface(); // Create a neural net controller for the walker. _walkerController = new NeuralNetController(walkerIface, _box); return(world); }