mirror of
https://github.com/love2d/love.git
synced 2026-08-16 08:11:02 +02:00
Starting box2d update
This commit is contained in:
@@ -47,10 +47,10 @@ int PolygonShape::getPoints(lua_State *L)
|
||||
{
|
||||
love::luax_assert_argc(L, 0);
|
||||
b2PolygonShape *p = (b2PolygonShape *)shape;
|
||||
int count = p->GetVertexCount();
|
||||
int count = p->m_count;
|
||||
for (int i = 0; i<count; i++)
|
||||
{
|
||||
b2Vec2 v = Physics::scaleUp(p->GetVertex(i));
|
||||
b2Vec2 v = Physics::scaleUp(p->m_vertices[i]);
|
||||
lua_pushnumber(L, v.x);
|
||||
lua_pushnumber(L, v.y);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user