Browse Source

make Body::applyForce(fx, fy) semantically clearer

Bill Meltsner 13 years ago
parent
commit
fae16c712d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/modules/physics/box2d/Body.cpp

+ 1 - 1
src/modules/physics/box2d/Body.cpp

@@ -196,7 +196,7 @@ namespace box2d
 
 	void Body::applyForce(float fx, float fy)
 	{
-		body->ApplyForce(Physics::scaleDown(b2Vec2(fx, fy)), body->GetWorldCenter());
+		body->ApplyForceToCenter(Physics::scaleDown(b2Vec2(fx, fy)));
 	}
 
 	void Body::setX(float x)