how to use box2d in lua ? (ver2.2.2)

how to use box2d in lua ? (ver2.2.2)
0.0 0


I found a solution from this topic

but the code it provided doesnot work very well…
b2PolygonShape:Set() function seems to have some problems
Maybe there are somewhere bugs, but I dont know how to fix it :frowning:

That topic was posted almost 3 years ago! I wonder if there are some better ways now to use box2d in LUA?


The 3.0rc0 version already bound the Physics based on chipmunk to Lua,you can refer to lua-tests/PhysicsTest.