Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/falcowinkler/flockingbird-swift
- Owner: falcowinkler
- Created: 2021-01-24T18:36:02.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2023-10-12T13:56:31.000Z (about 1 year ago)
- Last Synced: 2023-10-13T12:33:07.871Z (about 1 year ago)
- Topics: flocking, flocking-agents, flocking-algorithm, flocking-simulation, objective-c-plus-plus, swift, wrapper-library
- Language: Objective-C++
- Homepage:
- Size: 55.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
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
```