Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/falcowinkler/flockingbird-swift

Flocking simulation in swift
https://github.com/falcowinkler/flockingbird-swift

flocking flocking-agents flocking-algorithm flocking-simulation objective-c-plus-plus swift wrapper-library

Last synced: about 2 months ago
JSON representation

Flocking simulation in swift

Awesome Lists containing this project

README

        

# flockingbird-swift

Swift bindings for [flockingbird](https://github.com/falcowinkler/flockingbird).

Example usage:
```swift
let flock = Flock(numberOfBoids: 100, maxX: 1024, maxY: 600)
let simulationParameters = FlockSimulationParameters(fromDict: ["maxX": 1024, "maxY": 600])
let flockSimulation = FlockSimulation(flock: flock, simulationParameters: simulationParameters)
```

setup
```bash
git submodule init
git submodule update --recursive
# to update the commit of the submodule
cd Sources/CPP
git pull
```

build
```bash
swift build
```

test
```bash
swift test
```