/NBody-Metal

Simple N-body visualisation using Metal on OS X.

Primary LanguageSwift

This is a simple N-body simulation with visualisation for exploring the use of Metal for compute and graphics on OS X.

Building

This project uses Swift 5, and has been tested with Xcode 12.

Usage

The d key can be used to cycle through Metal devices.

The number of bodies can be increased and decreased with the + and - keys.