mirror of
https://github.com/love2d/love.git
synced 2026-08-16 16:20:42 +02:00
make Body::applyForce(fx, fy) semantically clearer
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user