| envs[0] = env;
env.addAgent(new Phys3Agent(0, env, "Agent0", 10, params), new Vector2D(0, -10), 180);
env.addAgent(new Phys3JetAgent(1, env, "Agent1", 10, params), new Vector2D(-3, 0), 180);
env.addAgent(new Phys3JetAgent(2, env, "Agent2", 10, params), new Vector2D(3, 0), 180);
j1 = new DistanceJoint(
env.getAgent(0),
env.getAgent(1),
new Vector2f(4, -5),
new Vector2f(0, 0.9f),
0);
j2 = new DistanceJoint(
env.getAgent(0),
env.getAgent(2),
new Vector2f(-4, -5),
new Vector2f(0, 0.9f),
0);
|