This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| protocol ObfuscatorProtocol { | |
| #if DEBUG | |
| func bytesByObfuscatingString(_ string: String) -> [UInt8] | |
| #endif | |
| func reveal(_ key: [UInt8]) -> String | |
| } | |
| class Obfuscator: ObfuscatorProtocol { | |
| // MARK: - Variables |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import simd | |
| extension float4x4 { | |
| init(scaleBy s: Float) { | |
| self.init(SIMD4<Float>(s, 0, 0, 0), | |
| SIMD4<Float>(0, s, 0, 0), | |
| SIMD4<Float>(0, 0, s, 0), | |
| SIMD4<Float>(0, 0, 0, 1)) | |
| } | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #ifndef MarchingCubesColorBlobParams_h | |
| #define MarchingCubesColorBlobParams_h | |
| #include <simd/simd.h> | |
| typedef struct { | |
| simd_float3 center; | |
| float radius; | |
| simd_float3 color; | |
| float _pad; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import ARKit | |
| import CoreHaptics | |
| import GameController | |
| import RealityKit | |
| import SwiftUI | |
| // MARK: - Immersive View | |
| struct ImmersiveSenseControllerInputsView: View { | |
| @State private var controllerManager = GameControllerManager() |
OlderNewer