mirror of
https://github.com/love2d/love.git
synced 2026-08-20 12:40:20 +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)
|
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)
|
void Body::setX(float x)
|
||||||
|
|||||||
Reference in New Issue
Block a user