From: Patrik Gornicz Date: Fri, 22 Aug 2008 19:54:46 +0000 (-0400) Subject: gravity well force moved to const X-Git-Tag: physics-premerge~126 X-Git-Url: http://gitweb.pgornicz.com/gitweb.cgi?a=commitdiff_plain;h=6d9186c57c41e5ec03356da142bc0fef71ce569f;p=libbear.git gravity well force moved to const --- diff --git a/src/Effects/GravityWell.cpp b/src/Effects/GravityWell.cpp index e3ab469..581d628 100644 --- 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; }