kripken / box2d.js

Port of Box2D to JavaScript using Emscripten
1.32k stars 198 forks source link

b2Body missing SetPosition/SetAngle #43

Closed AshleyScirra closed 10 years ago

AshleyScirra commented 10 years ago

As far as I can tell the bindings for b2Body are missing the SetPosition and SetAngle functions. Can support for these be added? Is there a workaround?

AshleyScirra commented 10 years ago

Sorry, my bad - looks like you just need to use body.SetTransform instead. It's a minor variation from the Box2DWeb API which for some reason got individual SetPosition and SetAngle functions.