public function ObjectContainer2DPosition(object3D:ObjectContainer3D):Number2D
{
var number2D:Number2D = new Number2D();

var sc:ScreenVertex;
sc = view.camera.screen(object3D);
number2D.x = sc.x + view.x + (view.width / 2);
number2D.y = sc.y + view.y + (view.height / 2);

return number2D;
}

Advertisements