Skip to content

Instantly share code, notes, and snippets.

@jordanlewis
Created April 18, 2010 19:09
Show Gist options
  • Save jordanlewis/370479 to your computer and use it in GitHub Desktop.
Save jordanlewis/370479 to your computer and use it in GitHub Desktop.
Vec3f pos = Vec3f(100, 0, 100);
Vec3f pos2 = Vec3f(100, 0, 150);
Agent agent(pos);
Agent agent2(pos2);
SteerInfo steer;
steer.acceleration = 1;
steer.rotation = 0;
agent.setSteering(steer);
steer.acceleration = -1;
agent2.setSteering(steer);
world->registerAgent(agent);
physics->initAgent(agent);
world->registerAgent(agent2);
physics->initAgent(agent2);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment