projects
/
physics.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
gravity well now follows the mouse
[physics.git]
/
src
/
Effects
/
GravityWell.cpp
diff --git
a/src/Effects/GravityWell.cpp
b/src/Effects/GravityWell.cpp
index
4fcd446
..
68afa27
100644
(file)
--- a/
src/Effects/GravityWell.cpp
+++ b/
src/Effects/GravityWell.cpp
@@
-48,3
+48,8
@@
Vector2 GravityWell::forceDelta(const PhysicsEntity* e, float) const
return acc;
}
+
+void GravityWell::setPosition(const Vector2& pos)
+{
+ position = pos;
+}