Interestingly my question is tangential to the previous post In that it deals with restring objects to an initial starting position. I'm approaching it differently from the previous poster: I'm defining a reset() method on each body that sets an initial starting coordinate. Trouble is, if you call super.create() prior to setting the position, the position is ignored. IE: just setting the .x and .y properties on the MovieClip doesn't have the desired effect.
Looking deeper, I realize that since I'm extending Circle, maybe I need to initialize its position by overriding shapes() and passing the V2 for its coordinates.
The real trouble comes when I try to roll my own dragging routine using the built-in MovieClip.startDrag(). I'm doing this because I want a very simple bounded drag operation that later applies a linearVelocity to the object and then wakes it up to let box2d do its thing. I suspect this would be quite complex if I tried to do it entirely within the box2d framework and its dragEnabled, whereas it's quite trivial using built-in MovieClip methods.
What to do? Setting active=false and awake=false ain't cutting the mustard here. How can I temporarily suspend all the great wck stuff so I can do my low-level stuff and then re-enable it so I can set it loose on the world? Our am I coming at this completely back asswards?
Looking deeper, I realize that since I'm extending Circle, maybe I need to initialize its position by overriding shapes() and passing the V2 for its coordinates.
The real trouble comes when I try to roll my own dragging routine using the built-in MovieClip.startDrag(). I'm doing this because I want a very simple bounded drag operation that later applies a linearVelocity to the object and then wakes it up to let box2d do its thing. I suspect this would be quite complex if I tried to do it entirely within the box2d framework and its dragEnabled, whereas it's quite trivial using built-in MovieClip methods.
What to do? Setting active=false and awake=false ain't cutting the mustard here. How can I temporarily suspend all the great wck stuff so I can do my low-level stuff and then re-enable it so I can set it loose on the world? Our am I coming at this completely back asswards?