最佳答案
您可以使用 CGPath 绘制形状, 然后使用 CGPathContainsPoint以确定触摸的位置是在路径内部还是外部。
您可以使用 SKShapeNode 在 SpriteKit 中像这样使用 CGPaths| .
关于ios - 如何使用 iOS SpriteKit 在环形内强制触摸?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34836590/
最佳答案
您可以使用 CGPath 绘制形状, 然后使用 CGPathContainsPoint以确定触摸的位置是在路径内部还是外部。
您可以使用 SKShapeNode 在 SpriteKit 中像这样使用 CGPaths| .
关于ios - 如何使用 iOS SpriteKit 在环形内强制触摸?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34836590/