mirror of
https://github.com/love2d/love.git
synced 2026-08-16 08:11:02 +02:00
Forgot scaling when creating shapes and in PolygonShape::getPoints()
--HG-- branch : box2d-update
This commit is contained in:
@@ -23,6 +23,7 @@
|
||||
// Module
|
||||
#include "Body.h"
|
||||
#include "World.h"
|
||||
#include "Physics.h"
|
||||
|
||||
namespace love
|
||||
{
|
||||
@@ -48,7 +49,7 @@ namespace box2d
|
||||
int count = p->GetVertexCount();
|
||||
for(int i = 0;i<count; i++)
|
||||
{
|
||||
b2Vec2 v = p->GetVertex(i);
|
||||
b2Vec2 v = Physics::scaleUp(p->GetVertex(i));
|
||||
lua_pushnumber(L, v.x);
|
||||
lua_pushnumber(L, v.y);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user