*/
#include "PhysicsEntity.h"
-#include "../debug.h"
-#include "../effectManager.h"
-#include "../Vector2.h"
+#include <bear/debug.h>
+#include <bear/Vector2.h>
+using namespace bear;
+
+#include "effectManager.h"
/// ***** Constructors/Destructors *****
PhysicsEntity::PhysicsEntity(const Vector2& pos)
- : Entity(pos), force(0,0), mass(1), CoR(1)
+ : Entity(pos), force(0,0), mass(1), CoR(0.8)
{
}
{
velocity += impulse;
}
+
+void PhysicsEntity::applyNudge(const Vector2& vecPush)
+{
+ position += vecPush;
+}