Mercurial > projects > openmelee
diff main.d @ 9:5b61327b5a7c
update steer
author | zzzzrrr <mason.green@gmail.com> |
---|---|
date | Sat, 21 Mar 2009 20:19:18 -0400 |
parents | 4ee9e4a0c03b |
children | d998bf1b0654 |
line wrap: on
line diff
--- a/main.d Sat Mar 21 19:44:19 2009 -0400 +++ b/main.d Sat Mar 21 20:19:18 2009 -0400 @@ -73,8 +73,11 @@ StopWatch timer; jobHub.addRepeatableJob( { - whut.world.step(timeStep, settings.velocityIterations, - settings.positionIterations); + // Update physics + whut.world.step(timeStep, settings.velocityIterations, + settings.positionIterations); + // Update AI + }, ITERS_PER_SECOND); bool running = true; @@ -82,6 +85,7 @@ jobHub.addPreFrameJob( { bzVec2 velocity = whut.ship1.rBody.linearVelocity; whut.ship1.limitVelocity(); + whut.ship2.limitVelocity(); }); jobHub.addPostFrameJob( {