Box2d question

hi everybody.

i have a very simple question:

i m using the great box2d plugin :
ground, top, left and right walls in wich are created on the fly falling objects.
once all objects are created , i want to move one of my walls. How to do it without reseting the all environnement ( falling object previously created ) ?

Hi, you can use update body and change/set position. Be aware that you can potentially break the physics, but if you don’t move stuff too fast should be ok.

Best way to pick up which wall is which is to use custom pin + sift to filter retrieved bodies.

hi vux. thanks for the information.
Some more question:
-is there any help patch about it around ? or can you send a little demonstration patch ?
-coordonates are on a 10x base is thats right ? do you think in future it is possible to have same coordonates “echelle” than with vvvv ?
-is it possible to use contour output of a living body with box2D ?

* is there any help patch about it around ? or can you send a little demonstration patch ?

Yes, just need to find on my laptop

* coordonates are on a 10x base is thats right ? do you think in future it is possible to have same coordonates "echelle" than with vvvv ?

Still discussing it. Problem is physics engine in general struggle will small values. Maybe having an “internal scaling” in the world node for future versions.

* is it possible to use contour output of a living body with box2D ?

Depends, you quite have to destroy it and recreate it every frame, as data from contour node vary a lot (in spread and coordinates). But that’s technically possible.

hi julien, thanks for all this informations.

aie… deleting recreating each frames ? is there no possiblity to have dynamic bodies ( from mouse, from contour, from anything ) inside of box2dworld ?

mais sacré boulot julien, un super sacré boulot… merci