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アルゴリズムで動く魚群をコントロールするプログラム。 集める、障害物から逃げる、二つの操作が現在可能です。
- Host: GitHub
- URL: https://github.com/mimisukemaster/flockingboidmanipulator
- Owner: mimisukeMaster
- License: mit
- Created: 2022-08-18T02:42:19.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2024-09-10T09:25:34.000Z (almost 2 years ago)
- Last Synced: 2025-03-05T18:58:04.420Z (over 1 year ago)
- Language: C#
- Homepage:
- Size: 26.3 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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表示がされていません。ありがとうございます。