UnityFlowField
Scripts for creating Flowfields in Unity
Install / Use
/learn @pickles976/UnityFlowFieldREADME
This is a very barebones FlowField generation script. FlowFieldController is the Monobehavior script that should be the main access point for generating FlowFields. A static FlowFieldProvider class calls FlowFieldFactory and gets a FlowField. This FlowField is in the static class and can be accessed from any script. This is ideal for my use case since I just have a single player and a bunch of Zombies that will only ever need to move towards the player. This method will probably not be ideal for a lot of people. I may fork it in the future if my use cases change-- feel free to change it yourself though :)
How to use:
- Clone the Repo to somewhere in your Assets folder
- Attach the FlowFieldController script to an empty GameObject
- Set all of the public fields in the script accordingly
- To get the vector from a Flowfield simply do: "Vector3 vec = FlowFieldProvider.GetVector(transform.position);"
Since FlowFieldProvider is static, it can be accessed from anywhere. GetVector returns the flowfield vector for a given position.
Related Skills
node-connect
349.0kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
109.4kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
349.0kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
349.0kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
