mirror of
https://github.com/love2d/love.git
synced 2026-08-16 00:02:12 +02:00
Switched get/setMeter from being a World method to a love.physics function
--HG-- branch : box2d-update
This commit is contained in:
@@ -26,6 +26,7 @@
|
||||
// Module
|
||||
#include "Body.h"
|
||||
#include "World.h"
|
||||
#include "Physics.h"
|
||||
|
||||
namespace love
|
||||
{
|
||||
@@ -87,10 +88,10 @@ namespace box2d
|
||||
|
||||
int Joint::getAnchors(lua_State * L)
|
||||
{
|
||||
lua_pushnumber(L, world->scaleUp(joint->GetAnchorA().x));
|
||||
lua_pushnumber(L, world->scaleUp(joint->GetAnchorA().y));
|
||||
lua_pushnumber(L, world->scaleUp(joint->GetAnchorB().x));
|
||||
lua_pushnumber(L, world->scaleUp(joint->GetAnchorB().y));
|
||||
lua_pushnumber(L, Physics::scaleUp(joint->GetAnchorA().x));
|
||||
lua_pushnumber(L, Physics::scaleUp(joint->GetAnchorA().y));
|
||||
lua_pushnumber(L, Physics::scaleUp(joint->GetAnchorB().x));
|
||||
lua_pushnumber(L, Physics::scaleUp(joint->GetAnchorB().y));
|
||||
return 4;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user