The following code:
shape = b2.PolygonShape.new()
shape:set()
causes the GiderosPlayer to shutdown with a runtime assertion:
Program C:\Program Files\Giderso\GiderosPlayer.exe
File: ..\external\Box2D_v2.2.1\Box2D\Collision\Shapes\b2POlygonShape.cpp
Line: 122
Expression: "3 <=count && count <=8"
I know this is invalid usage of the "set" method, but thought I'd report this since it's the only time that GiderosPlayer has asserted on me.
--ND
Comments
i've tried vertices = { {0, 0},{0, mHeight}, {mWidth, mHeight}, {mWidth, 0}} and
vertices = { {x=0, y=0},{x=0, y=mHeight}, {x=mWidth, y=mHeight}, {x=mWidth, y0}}
and after
shape:set( vertices) the compiler keeps saying "expected NUMBER, got table" in those cases. What am I doing wrong?