Package eas.simulation.spatial.sim2D.physicalSimulation.standardAgents

Examples of eas.simulation.spatial.sim2D.physicalSimulation.standardAgents.StaticBody


       
        PhysicsAgent3 p = new PhysicsAgent3(10000, env, 200, params);
        env.addAgent(p, new Vector2D(-200, 100), 0);
//        p.adjustVelocity(new Vector2f(100, 0));
       
        env.addAgent(new StaticBody(10001, env, params), new Vector2D(10, -80), 0);
        env.addAgent(new StaticBody(10002, env, params), new Vector2D(125, -80), 0);
        env.addAgent(new StaticBody(10003, env, params), new Vector2D(250, -80), 0);
        env.addAgent(new StaticBody(10004, env, params), new Vector2D(10, 250), 0);
        env.addAgent(new StaticBody(10005, env, params), new Vector2D(125, 250), 0);
        env.addAgent(new StaticBody(10006, env, params), new Vector2D(250, 250), 0);
        env.addAgent(new StaticBody(10007, env, params), new Vector2D(325, -40), 90);
        env.addAgent(new StaticBody(10008, env, params), new Vector2D(325, 85), 90);
        env.addAgent(new StaticBody(10009, env, params), new Vector2D(325, 210), 90);
       
        env.add(new ForceSource<PhysicsAgent2D<?>>() {
            private static final long serialVersionUID = 7669888473552046204L;

            @Override
View Full Code Here


        env.addCollidingAgent(new PhysicalObstacle(1, env, params, 10), new Vector2D(55, -100), 45);
        env.addCollidingAgent(new PhysicalObstacle(2, env, params, 10), new Vector2D(51, -70), 77);
        env.addCollidingAgent(new PhysicalObstacle(6, env, params, 10), new Vector2D(0, -50), 73);
        env.addCollidingAgent(new PhysicalObstacle(7, env, params, 10), new Vector2D(140, -50), 0);
        env.addCollidingAgent(new PhysicalObstacle(8, env, params, 10), new Vector2D(140, -150), 0);
        env.addCollidingAgent(new StaticBody(3, env, params), new Vector2D(-10, -50), 0);
        env.addCollidingAgent(new StaticBody(13, env, params), new Vector2D(-85, -30), 90);
        env.addCollidingAgent(new StaticBody(4, env, params), new Vector2D(16, 0), 4);
        env.addCollidingAgent(new StaticBody(5, env, params), new Vector2D(175, 20), 7);
        env.addCollidingAgent(new StaticBody(10, env, params), new Vector2D(275, 99), -16);
        env.addCollidingAgent(new PhysicsAgent2(9, env, 5, params), new Vector2D(155, -80), 95);
        env.addCollidingAgent(new PhysicsAgent2(11, env, 5, params), new Vector2D(275, 0), 47);
        env.addAgent(new PhysicsAgentCircle(12, env, 70, params), new Vector2D(-84, -120), 7);
        env.addCollidingAgent(new StaticBody(15, env, params), new Vector2D(135, 199), -6);
        env.addCollidingAgent(new StaticBody(16, env, params), new Vector2D(75, 266), 5);
//        env.addCollidingAgent(new StaticBody(17, env), new Vector2D(350, 200), -3);
        env.addCollidingAgent(new StaticBody(18, env, params), new Vector2D(248, 190), 25);
       
        return envs;
    }
View Full Code Here

    for (int i = 0; i < numSpheres; i++) {
      env.addAgent(new PhysicsAgentCircle(max * max + i + 1, env, 300, params), new Vector2D(10 + 0.5 * i, -30 - 10 * i), 0, new Vector2D(0.1, 0.1));
    }
   
    env.addAgent(new StaticBody(max * max + numSpheres + 1, env, params), new Vector2D(20, 130), 180);
    env.addAgent(new StaticBody(max * max + numSpheres + 2, env, params), new Vector2D(-50, 70), 90);
    env.addAgent(new StaticBody(max * max + numSpheres + 3, env, params), new Vector2D(90, 70), 90);
   
    PhysicsAgentCircle circ = new PhysicsAgentCircle(max * max + numSpheres + 4, env, 1000, params);
        env.addAgent(circ, new Vector2D(-5, -1), 0, new Vector2D(0.1, 0.1));
        circ.setColor(Color.blue);
   
View Full Code Here

TOP

Related Classes of eas.simulation.spatial.sim2D.physicalSimulation.standardAgents.StaticBody

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.