Base/abstract class for walker controllers.
Ejemplo n.º 1
0
        /// <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;
        }
Ejemplo n.º 3
0
        /// <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);
        }
Ejemplo n.º 4
0
        /// <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);
        }