projects
/
physics.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added using namespace pg to relavent files ... will remove at some point
[physics.git]
/
src
/
Entities
/
PhysicsEntity.cpp
diff --git
a/src/Entities/PhysicsEntity.cpp
b/src/Entities/PhysicsEntity.cpp
index
9daff3a
..
4ba50dc
100644
(file)
--- a/
src/Entities/PhysicsEntity.cpp
+++ b/
src/Entities/PhysicsEntity.cpp
@@
-16,10
+16,12
@@
*/
#include "PhysicsEntity.h"
*/
#include "PhysicsEntity.h"
-#include "debug.h"
+
+#include <pg/debug.h>
+#include <pg/Vector2.h>
+using namespace pg;
#include "effectManager.h"
#include "effectManager.h"
-#include "Vector2.h"
/// ***** Constructors/Destructors *****
/// ***** Constructors/Destructors *****
@@
-85,3
+87,8
@@
void PhysicsEntity::applyImpulse(const Vector2& impulse, const Vector2& at)
{
velocity += impulse;
}
{
velocity += impulse;
}
+
+void PhysicsEntity::applyNudge(const Vector2& vecPush)
+{
+ position += vecPush;
+}