有沒有一種方法可以將PhysicsEditor(來自代碼和Web)的物理體多邊形路徑導出爲CGPath?我覺得可能比我更容易手動將(72, 429) , (77, 423) , (77, 425) , (-64, 437) ...
轉換爲[CGPoint(x: 72, y: 429), CGPoint(x: 77, y: 423) ...
等。我無法在網上找到很多信息。由於PhysicsEditor CGPath的多邊形路徑
編輯:我已經想出了一個辦法在Xcode操場做到這一點使用string.replacingOccurrences(of:...