我有一个要在场景中心绘制的椭圆
let center = (view.scene.position.x, view.scene.position.y)
let size = (view.scene.frame.size.width * 0.7, view.scene.frame.size.height * 0.7)
let ellipse = SKShapeNode (ellipseInRect: CGRectMake(center.0, center.1, size.0, size.1))
ellipse.strokeColor = UIColor.blackColor()
ellipse.position = CGPointMake(center)
self.addChild(ellipse)
但它出现在场景中,如下所示:
我如何将它定位在场景的中心?