Forgot scaling when creating shapes and in PolygonShape::getPoints()

--HG--
branch : box2d-update
This commit is contained in:
Bill Meltsner
2011-09-24 01:55:15 -04:00
parent 542ae2f736
commit 5f4b4c8838
2 changed files with 7 additions and 4 deletions
+2 -1
View File
@@ -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);
}