mirror of
https://github.com/love2d/love.git
synced 2026-08-14 01:20:56 +02:00
Make Joint::getReactionForce use the right stack position
--HG-- branch : box2d-update
This commit is contained in:
@@ -97,7 +97,7 @@ namespace box2d
|
||||
|
||||
int Joint::getReactionForce(lua_State * L)
|
||||
{
|
||||
float dt = (float)luaL_checknumber(L, 2);
|
||||
float dt = (float)luaL_checknumber(L, 1);
|
||||
b2Vec2 v = Physics::scaleUp(joint->GetReactionForce(dt));
|
||||
lua_pushnumber(L, v.x);
|
||||
lua_pushnumber(L, v.y);
|
||||
|
||||
Reference in New Issue
Block a user