From: Patrik Gornicz Date: Sat, 2 Aug 2008 01:12:29 +0000 (-0400) Subject: made all the balls start moving X-Git-Tag: physics-premerge~175 X-Git-Url: http://gitweb.pgornicz.com/gitweb.cgi?a=commitdiff_plain;h=3980ceb3ab097c9aa79d4a46258b007a300da25b;p=libbear.git made all the balls start moving --- diff --git a/src/entityCreator.cpp b/src/entityCreator.cpp index 8ed35f4..078e40f 100644 --- a/src/entityCreator.cpp +++ b/src/entityCreator.cpp @@ -19,47 +19,55 @@ void creator::init() ball = new Ball(Vector2(50, 50), 20, cWhite); - ball->applyImpulse(Vector2(0.01,0.01)), + ball->applyImpulse(Vector2(0.25,0.05)), Balls.push(ball); manager::add(ball); ball = new Ball(Vector2(100, 50), 20, cBlack); + ball->applyImpulse(Vector2(-0.15,-0.05)), Balls.push(ball); manager::add(ball); ball = new Ball(Vector2(150, 50), 20, cGrey); + ball->applyImpulse(Vector2(0.25,0.15)), Balls.push(ball); manager::add(ball); ball = new Ball(Vector2(50, 100), 20, cRed); + ball->applyImpulse(Vector2(0.35,-0.15)), Balls.push(ball); manager::add(ball); ball = new Ball(Vector2(100, 100), 20, cGreen); + ball->applyImpulse(Vector2(-0.15,0.05)), Balls.push(ball); manager::add(ball); ball = new Ball(Vector2(150, 100), 20, cBlue); + ball->applyImpulse(Vector2(0.25,0.15)), Balls.push(ball); manager::add(ball); ball = new Ball(Vector2(50, 150), 20, cYellow); + ball->applyImpulse(Vector2(0.25,-0.05)), Balls.push(ball); manager::add(ball); ball = new Ball(Vector2(100, 150), 20, cMagenta); + ball->applyImpulse(Vector2(-0.15,-0.05)), Balls.push(ball); manager::add(ball); ball = new Ball(Vector2(150, 150), 20, cCyan); + ball->applyImpulse(Vector2(-0.15,0.05)), Balls.push(ball); manager::add(ball); }