gravity well force moved to const
authorPatrik Gornicz <Gornicz.P@gmail.com>
Fri, 22 Aug 2008 19:54:46 +0000 (15:54 -0400)
committerPatrik Gornicz <Gornicz.P@gmail.com>
Fri, 22 Aug 2008 19:54:46 +0000 (15:54 -0400)
src/Effects/GravityWell.cpp

index e3ab469..581d628 100644 (file)
@@ -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;
 }