projects
/
libbear.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
07df2ae
)
gravity well force moved to const
author
Patrik Gornicz
<Gornicz.P@gmail.com>
Fri, 22 Aug 2008 19:54:46 +0000
(15:54 -0400)
committer
Patrik Gornicz
<Gornicz.P@gmail.com>
Fri, 22 Aug 2008 19:54:46 +0000
(15:54 -0400)
src/Effects/GravityWell.cpp
patch
|
blob
|
blame
|
history
diff --git
a/src/Effects/GravityWell.cpp
b/src/Effects/GravityWell.cpp
index
e3ab469
..
581d628
100644
(file)
--- a/
src/Effects/GravityWell.cpp
+++ b/
src/Effects/GravityWell.cpp
@@
-18,6
+18,7
@@
#include "GravityWell.h"
#include "../Entities/PhysicsEntity.h"
+float wellGravity = 0.5;
/// ***** Constructors/Destructors *****
@@
-44,7
+45,7
@@
Vector2 GravityWell::forceDelta(const PhysicsEntity* e, float) const
Vector2 acc(0,0);
if( sqrDist > 0.5F )
- acc += delta / sqrDist * mass
/ 2
;
+ acc += delta / sqrDist * mass
* wellGravity
;
return acc;
}