BOX2D Module, b2PolygonDef missing

Monkey Forums/Monkey Programming/BOX2D Module, b2PolygonDef missing

Rob Pearmain(Posted 2011) [#1]
Hi,

I am trying to convert some Box2D Flash demos to monkey, and the module seems to be missing b2PolygonDef,

Has this been superseded in Box2D, or is it waiting to be implemented?

Thanks


Rob Pearmain(Posted 2011) [#2]
Had a reply from Damian:

The methods and properties of b2PolygonDef in the flash version are part of b2PolygonShape.

Friction, Restitution and Denisity are in b2FixtureDef. See the tests for examples. e.g.:

http://code.google.com/p/monkeybox2d/source/browse/demo/tests/teststack.monkey

The monkey library is based on 2.1a


Armitage1982(Posted 2011) [#3]
I see that Box2D 2.1 have one way collisions feature.
http://www.box2dflash.org/

Something I would have loved to see in the BlitzMax version.
I hope using fixture is not harder, giving that you already have to understand Monkey first :)