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
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