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:
@@ -25,6 +25,7 @@
|
||||
// Module
|
||||
#include "Body.h"
|
||||
#include "World.h"
|
||||
#include "Physics.h"
|
||||
|
||||
namespace love
|
||||
{
|
||||
@@ -36,7 +37,7 @@ namespace box2d
|
||||
: Joint(body1, body2), joint(NULL)
|
||||
{
|
||||
b2WeldJointDef def;
|
||||
def.Initialize(body1->body, body2->body, world->scaleDown(b2Vec2(x,y)));
|
||||
def.Initialize(body1->body, body2->body, Physics::scaleDown(b2Vec2(x,y)));
|
||||
def.collideConnected = collideConnected;
|
||||
joint = (b2WeldJoint*)createJoint(&def);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user