Birch-san / box2d-wasm

Box2D physics engine compiled to WebAssembly. Supports TypeScript and ES modules.
263 stars 21 forks source link

'enabled' attribute is missing from b2BodyDef #38

Closed dimitrisx closed 2 years ago

dimitrisx commented 2 years ago

The b2BodyDef (in box2d-wasm/Box2D.idl) is missing the 'enabled' attribute.

Birch-san commented 2 years ago

agreed; thanks for raising.

will expose this and also attend to https://github.com/Birch-san/box2d-wasm/issues/36 next time I have the hood open.

in the meantime: I suppose you'll have to use IsEnabled / SetEnabled() on the body after it's been created.

Birch-san commented 2 years ago

v7.0.0 exposes b2BodyDef#enabled