tiny reflection2 fix

This commit is contained in:
Daniel Shiffman
2013-03-16 22:45:01 -04:00
parent 91471de8d9
commit 0edca43510

View File

@@ -26,13 +26,11 @@ class Orb {
void checkWallCollision() {
if (position.x > width-r) {
position.x = width-r;
velocity.x *= -1;
velocity.x *= damping;
velocity.x *= -damping;
}
else if (position.x < r) {
position.x = r;
velocity.x *= -1;
velocity.x *= damping;
velocity.x *= -damping;
}
}