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 Foundation | |
| struct Branch { | |
| var segments: [BranchSegment] = [] | |
| var dynamicSegment: BranchSegment? // the end of the branch that's currently growing | |
| var completedSegments: Int = 0 | |
| var currentGrowthProgress: Float = 0.0 | |
| var isActive: Bool = true | |
| var branchId: UUID = UUID() | |
| var parentBranchId: UUID? |
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 SwiftUI | |
| import RealityKit | |
| import Metal | |
| struct PancakeEffectView: View { | |
| @State var entity: ModelEntity? | |
| @State var lowLevelMesh: LowLevelMesh? | |
| @State var originalVerticesBuffer: MTLBuffer? | |
| @State var timer: Timer? | |
| @State var isForward: Bool = true |