3D转2D
do3d.calculateScreenCoords(camera3D);
var real2DX:Number = do3d
.screen.x + viewport3D.width/2;
var real2DY:Number = do3d
.screen.y + viewport3D.height/2;
2D转3D
var ray:Number3D = camera.unproject(viewport.containerSprite.mouseX, viewport.containerSprite.mouseY);
ray = Number3D.add(ray, camera.position);