First: Love wck, it is giving me the intro to Box2d that I never had time for in the past.
I'm building a touch gui. The idea is that there is a "nebula" consisting of a bunch of identical BodyShapes. One of these shapes has "Focus" at a time, given by a MouseEvent handler. When the shape has focus, a child object extending based on the RadialGravity demo is added to it, making it the center(attractor?) of the nebula.
That much I've been able to handle, by extending ShapeBase and calling circle() in the shapes() override, along with some tweened properties and as3 Event handling.
What I'd like to add now is the ability to animate the scale(width,height) of the object. I've tried to do this as follows:
1. Change the type of BodyShape to "Animated"
2. Tween the location and scale of the shape.
3. call circle(newWidth/2); when the animation completes.
This seems to work fine for making the shape larger, but when I want to "blur" the object, following the same process, it doesn't seem to work. That is, the boundary remains at the larger scale.
What method to I need to call in order to update the computed "boundary"(fixture?) of my object?
I'm building a touch gui. The idea is that there is a "nebula" consisting of a bunch of identical BodyShapes. One of these shapes has "Focus" at a time, given by a MouseEvent handler. When the shape has focus, a child object extending based on the RadialGravity demo is added to it, making it the center(attractor?) of the nebula.
That much I've been able to handle, by extending ShapeBase and calling circle() in the shapes() override, along with some tweened properties and as3 Event handling.
What I'd like to add now is the ability to animate the scale(width,height) of the object. I've tried to do this as follows:
1. Change the type of BodyShape to "Animated"
2. Tween the location and scale of the shape.
3. call circle(newWidth/2); when the animation completes.
This seems to work fine for making the shape larger, but when I want to "blur" the object, following the same process, it doesn't seem to work. That is, the boundary remains at the larger scale.
What method to I need to call in order to update the computed "boundary"(fixture?) of my object?