Package eas.users.demos.physics2DA

Examples of eas.users.demos.physics2DA.PhysicsAgent2


        }
//        for (int i = 0; i < 3; i++) {
//            env.addAgent(new StaticObstacleShortPassive(10000 + i, env, params), new Vector2D(50 - i * 4, -50 - i * 5), -15);
//        }

        env.addAgent(new PhysicsAgent2(100000, env, 1000, params), new Vector2D(45, 3), 45);
        env.addAgent(new PhysicsAgent2(100001, env, 1000, params), new Vector2D(45, -30), 45);
        env.addAgent(new PhysicsAgent2(100002, env, 1000, params), new Vector2D(45, -63), 45);
       
        env.setPerfectFit(true);
       
        return envs;
    }
View Full Code Here


        PhysicsEnvironment2D<PhysicsAgent2D<?>> env = new PhysicsEnvironment2D<PhysicsAgent2D<?>>(0, params, new Vector2f(0, 0), 500);
        envs[0] = env;
       
        for (int i = 0; i < 200; i += 30) {
            for (int j = 0; j < 200; j += 30) {
                env.addAgent(new PhysicsAgent2(j * 10 + i, env, 5, params), new Vector2D(i, j), 0);
            }           
        }
       
        PhysicsAgent3 p = new PhysicsAgent3(10000, env, 200, params);
        env.addAgent(p, new Vector2D(-200, 100), 0);
View Full Code Here

TOP

Related Classes of eas.users.demos.physics2DA.PhysicsAgent2

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.