An implementation of Boids
Boids Unlimited
An implementation of Boids
- Hosts a MTKView within SwiftUI using an UIViewRepresentable
- Updates and draws the Boids using a MetalKit compute kernel shader
Simulator.Screen.Recording.-.iPad.Air.5th.generation.-.2022-03-22.at.20.47.46.mp4
References and Sources
Inspiriations for starting this project:
Original Boids papers and reference:
I based my implementation off this code:
Extremely Helpful Articles on MetalKit:
- https://metalbyexample.com/modern-metal-1/
- https://metalkit.org/2017/11/30/working-with-particles-in-metal-part-3/
- https://eugenebokhan.io/introduction-to-metal-compute-part-two
- https://github.com/RedQueenCoder/Metal-Learning-Projects