Shape color

Hi there,

is there a way to give a shape some color, because my movieclips are not aligning up with the shapes so,
to me when testing when the movieclips are positioned correctly, the shapes are not.

this would be a nice feature for box2d as well if it does not exist,
Code:
      //bottom
         var boundMCB:Sprite = new boundMC();
         bodyDefB = new b2BodyDef();
         bodyDefB.userData = boundMCB;
         bodyDefB.userData.height = boundMCB.height * 2;
         bodyDefB.userData.width = _stage.stageWidth;
         bodyDefB.userData.name = "topBoundMC";
         boxDefB = new b2BoxDef();
         boxDefB.extents.Set( bodyDefB.userData.width / 2 , bodyDefB.userData.height / 2);
         boxDefB.density = 0;
         bodyDefB.AddShape(boxDefB);
         bodyDefB.position.Set(_centerPoint.x , getBoundBottom() + boxDefB.extents.y - 10);         
         _stage.addChild(bodyDefB.userData);
         var boundBoxB:b2Body = m_world.CreateBody(bodyDefB);
         _boundsArray.push([bodyDefB.userData, boundBoxB]);


currently that is how i am defining my shape and attaching a clip from the library,
any ideas on how to give my b2BoxDef shape some color?

thanks
C
nevermind, it was aligning up, it was my

worldAABB.minVertex.Set(,);
worldAABB.maxVertex.Set(,);

again...doh!

anyways, the shape color feature would still be cool tho.
Cheers
C
Box2D is a physics engine, so it will not ever be a feature in that. This would be something that would be in the testbed code, which the C++ version already has. If I have enough time after completing my current project I will hopefully be able to get the display code I've already written organized into a fast raster display engine for AS3 that will be easy to use with Box2D. If you just want simple colors, look at the drawing routines in the testbed code for Box2D Flash, you can actually change the colors there by adding fills.

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