projects
/
physics.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
finished changes to deps directory building
[physics.git]
/
src
/
Entities
/
PhysicsEntity.h
diff --git
a/src/Entities/PhysicsEntity.h
b/src/Entities/PhysicsEntity.h
index
b4b5b9e
..
d229691
100644
(file)
--- a/
src/Entities/PhysicsEntity.h
+++ b/
src/Entities/PhysicsEntity.h
@@
-18,8
+18,10
@@
#ifndef PHYSICS_H
#define PHYSICS_H
#ifndef PHYSICS_H
#define PHYSICS_H
+#include <bear/Vector2.h>
+using namespace bear;
+
#include "Entity.h"
#include "Entity.h"
-#include "Vector2.h"
/// ***** Header Class *****
/// ***** Header Class *****
@@
-43,13
+45,15
@@
class PhysicsEntity: public Entity
virtual void applyImpulse(const Vector2& impulse);
virtual void applyImpulse(const Vector2& impulse, const Vector2& at);
virtual void applyImpulse(const Vector2& impulse);
virtual void applyImpulse(const Vector2& impulse, const Vector2& at);
+ virtual void applyNudge(const Vector2& vecPush);
+
//protected:
//protected:
- Vector2 force;
+ Vector2
m_
force;
- float mass;
+ float m
_m
ass;
// Coefficient of Restitution
// Coefficient of Restitution
- float CoR;
+ float
m_
CoR;
};
#endif // PHYSICS_H
};
#endif // PHYSICS_H