Impact

This forum is read only and just serves as an archive. If you have any questions, please post them on github.com/phoboslab/impact

1 decade ago by Bricky

Hello,

how to change position of entitiy in Box2D?

pos.x, pox.y not working.

1 decade ago by quidmonkey

When using Box2D, the Impact Entity API doesn't work; instead, you need to use the Box2D API. You'll want to use SetXForm():

this.body.SetXForm(new b2.Vec2( pos.x, pos.y ), 0);
Page 1 of 1
« first « previous next › last »