{"repo":"kingstone426/NativeFlowField","free":true,"listed":false,"github":"https://github.com/kingstone426/NativeFlowField","clone":"git clone https://github.com/kingstone426/NativeFlowField.git","description":"GPU-powered flow field generation for Unity DOTS","language":"C#","stars":29,"topics":["compute-shader","csharp","flow-field","flow-field-navigation","game-development","gpu-computing","pathfinding","unity"],"license":"MIT","category":"game-templates","readme_excerpt":"GPU-powered flow field generation for Unity DOTS Overview NativeFlowField is a high-performance Unity library for generating 2D navigation flow fields on the GPU using compute shaders and native collections. It is intended for DOTS-based projects that require scalable, low-latency navigation data suitable for thousands of agents operating in dynamic environments. Unlike traditional A pathfinding, flow fields (sometimes called Dijkstra Maps) allow multiple agents to navigate towards a shared target without making individual pathfinding requests. That makes flow fields ideal for crowd simulation, RTS unit movement and swarm behavior. This implementation offloads flow field computation entirely to the GPU, enabling real-time responsiveness to dynamic obstacles and moving targets without sacrificing performance. Installation Open the Package Manager, click + and select Install package from git URL... https://github.com/kingstone426/NativeFlowField.git Sample Project For a complete sample project, check out the NativeFlowFieldDemo. Usage Step 1: Create a NativeFlowField Let's create a tiny 7x7 flow field with a heatmap for visualizion Step 2: Create an input field The input field contains the map data that will be baked. Each element represents a cell that can be either Walkable, Obstacle or Target. Let's populate the input field with some map data. It is possible to mark multiple cells as targets and (optionally) give them different priority. A value of zero represents default pr","default_branch":null,"files":null,"tree":[],"storefront":"/r/kingstone426","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/kingstone426/NativeFlowField/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}