aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/physics/physics.cpp2
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 &currentShape, 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;