fixed polygon penitration due to CoR
[physics.git] / src / Entities / PhysicsEntity.cpp
index 9daff3a..d42d271 100644 (file)
@@ -85,3 +85,8 @@ void PhysicsEntity::applyImpulse(const Vector2& impulse, const Vector2& at)
 {
     velocity += impulse;
 }
+
+void PhysicsEntity::applyNudge(const Vector2& vecPush)
+{
+    position += vecPush;
+}