X-Git-Url: http://gitweb.pgornicz.com/gitweb.cgi?a=blobdiff_plain;f=src%2FEntities%2FPhysicsEntity.cpp;h=d20f67155d0b4788e4ac923c9c5b9925878dc0f2;hb=f32a9b7c8eab3536ad354f85ee65c41d5b5da006;hp=9daff3a0bb58ca788651eca2186d0af6743ec261;hpb=3d1f081343dc603a3292538eeb9bd794b255deb6;p=physics.git diff --git a/src/Entities/PhysicsEntity.cpp b/src/Entities/PhysicsEntity.cpp index 9daff3a..d20f671 100644 --- a/src/Entities/PhysicsEntity.cpp +++ b/src/Entities/PhysicsEntity.cpp @@ -16,10 +16,11 @@ */ #include "PhysicsEntity.h" -#include "debug.h" + +#include +#include #include "effectManager.h" -#include "Vector2.h" /// ***** Constructors/Destructors ***** @@ -85,3 +86,8 @@ void PhysicsEntity::applyImpulse(const Vector2& impulse, const Vector2& at) { velocity += impulse; } + +void PhysicsEntity::applyNudge(const Vector2& vecPush) +{ + position += vecPush; +}