diff options
Diffstat (limited to 'src/physics/physics.cpp')
-rw-r--r-- | src/physics/physics.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/physics/physics.cpp b/src/physics/physics.cpp index a624bc5..6b95bbe 100644 --- a/src/physics/physics.cpp +++ b/src/physics/physics.cpp @@ -19,7 +19,7 @@ bool Physics::checkForSphereCollision(RenderShapeData ¤tShape, RenderShape { currentShape.velocity *= -1.f; // move a little in other direction so it doesn't flip again - currentShape.translation4d = currentShape.velocity; + currentShape.translation4d += currentShape.velocity; } return distance <= radius + radius; |