per time tick manual movement of nonmoving body

have a dynamic b2Body sprite combo that by design becomes latched to the position of a manually moved sprite (who has no box2d properties) - the intended behavior is:

1) have the latched dynamic body stop its box2d physics sim while latched to the sprite but still be able to move the dynamic b2Body and its sprite image in synch with the manually moved sprite
2) when a game event occurs, release the latched dy. b2Body back to its original physics sim state with its sprite and the b2Body starting its re-sim at its current position (wherever it may be at that time tick)

have tried weldJoints, SetAwake and SetActive approaches to latching the body to the sprite with success but the dynamic body sprite image itself is the only thing that moves while its box2d body remains at the position where the latch condition took place - the result is that when an action produces a de-latching of the dynamic body its sprite image jumps to the position of where its body was initially stopped (nice for a teleportation effect, but not the intended effect)

thoughts? sure it's a simple fix to have a manual position function on a per time tick for a b2Body, but it has escaped me to date

thx
I got a bit confused with all the 'latching' and 'syncing'... it sounds like you are trying to make a typical situation where an object bounces around in the world as normal until the user touches it, and then it will follow the finger position?

The simplest way to do this would probably be the same was as the testbed does it, with a mouse joint. This will allow you to keep the physics realistic and you can move the object around and hit other things with it etc.

On the other hand if you want the body to ignore physics entirely while the user is moving it, you could either set it's fixture as a sensor, change the collision filter's maskBits to zero, or perhaps SetActive(false) (not sure about that one) and then use SetTransform to move it where the touch moves explicitly. The advantage of this is instant reaction to the touch movement, whereas the mouse joint can be a bit slow to react. A disadvantage is that if you want to 'throw' the body you will have to keep track of how fast and which direction the touch was moving when it the finger is lifted off.
thanks for the reply i.f. - a combo of manual sprite movement and SetTransform() did the trick - two movement API calls for the price of one result - cool

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