所以我需要从圆周上的随机点生成游戏敌人。这是我到目前为止的代码,感觉非常接近工作但不是:letenemy=SKShapeNode(circleOfRadius:5)funcenemyGenerator(){//takesanxvalueandcalculatesthecorrespondingycoordinateonthecircle.funcenemyYSpawnPosition(x:CGFloat)->CGFloat{returnsqrt(104006.25-(x*x))}//randomlyselectsanxvaluefromarangeofacceptablevalues.