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

https://github.com/mimisukemaster/flockingboidmanipulator

Program to control moving fish schools with Flocking Boid algorithm. Two manipulations are currently possible: gathering and escaping from obstacles. / Flocking Boidアルゴリズムで動く魚群をコントロールするプログラム。 集める、障害物から逃げる、二つの操作が現在可能です。
https://github.com/mimisukemaster/flockingboidmanipulator

Last synced: 11 months ago
JSON representation

Program to control moving fish schools with Flocking Boid algorithm. Two manipulations are currently possible: gathering and escaping from obstacles. / Flocking Boidアルゴリズムで動く魚群をコントロールするプログラム。 集める、障害物から逃げる、二つの操作が現在可能です。

Awesome Lists containing this project

README

          

# Floking Boid Manipurator
### Flocking Boid アルゴリズムにより動く魚群をイベントによって全体の動きを操作可能にしたコードです。

|イベント|魚群の動き|
|:---:|:---:|
|画面をクリックした時|中心の座標に魚たちを集める|
|障害物を検知した時|アルゴリズムを意識しながら逃げます|
***

- 画面クリック時

(0, 3, 0)の座標へ集まります。

- 障害物を検知した時

それを避ける方向のベクトルを計算し逃げます。

https://user-images.githubusercontent.com/81568941/188129234-dec00ad4-2a1c-4e2d-925e-194cc9956330.mp4

## Special Thanks
このプロジェクトはhekomiさんの[UnityECSBoidsSimulation](https://github.com/hecomi/UnityECSBoidsSimulation)をCloneし改変したものです。hekomiさんには申し訳ないですが、ForkしていないのでFork表示がされていません。ありがとうございます。