I'm trying to access the radius from a body, the closest I've got is this:
It always outputs 0.1, regardless of the size of the actual shape. Any ideas what I'm doing wrong?
Thanks!
Code: Select all
var asteroidShape:b2CircleShape = b.GetFixtureList().GetShape() as b2CircleShape;
trace("rad: " +asteroidShape.GetRadius());
It always outputs 0.1, regardless of the size of the actual shape. Any ideas what I'm doing wrong?
Thanks!