I've found a few references to calling SetXForm() to move a body around, but I can't get this to work with box2dweb
body.SetXForm(new Box2D.Common.Math.b2Vec2( 7,3 , body.GetWorldCenter() ) );
or
body.SetXForm(new Box2D.Common.Math.b2Vec2( 7,3 ) );
Will both throw a TypeError exception.
Anyone have working example of how to do this?
Thanks.
body.SetXForm(new Box2D.Common.Math.b2Vec2( 7,3 , body.GetWorldCenter() ) );
or
body.SetXForm(new Box2D.Common.Math.b2Vec2( 7,3 ) );
Will both throw a TypeError exception.
Anyone have working example of how to do this?
Thanks.