Moving Statics

Hello,

I am using the testbed examples. I would like to enable the user to move solid with the mouse.
Ideally I would also be able to change the size of the solids, much like you manipulate a window in windows or linux.
How can I go about that?

Davoud
1) Either use SetXForm, or do not make them static. The latter is preferable. You can then you the mouse joint to moves stuff around.

2)You must delete and recreate the shapes. There is no other way.
Yes, but how do I make object nonStatic, with out them being moved when they are hit (density>0)?

Thanks for your answer
@taghawi, what boris said - SetXForm. however, you also have to use SetLinearVelocity (new b2Vec2 (0, 0)) + SetAngularVelocity (0) on non-static stuff to compensate for gravity/etc.

@boris, as I said before, this has to be on faq

Original thread: https://box2d.org/forum/viewtopic.php?t=1845