Check out our latest project ✨ OpenChapter.io: free ebooks the way its meant to be 📖

Boids (2D/3D flocking)

An asset by yusdacra
The page banner background of a mountain and forest
Boids (2D/3D flocking) thumbnail image
Boids (2D/3D flocking) thumbnail image
Boids (2D/3D flocking) hero image

Quick Information

0 ratings
Boids (2D/3D flocking) icon image
yusdacra
Boids (2D/3D flocking)

addon for Godot that adds fast 2D / 3D boids (flocking).

Supported Engine Version
4.3
Version String
0.1.2
License Version
MIT
Support Level
community
Modified Date
4 months ago
Git URL
Issue URL

boids

addon for Godot that adds 2D / 3D boids (flocking).

README boids 2d README boids 3d

it can handle about 2000 boids in a single flock at 11ms physics process tick on my PC (Ryzen 5600). (keep in mind this is without any partitioning of sorts, so it's bound to get better)

install

download it from the asset library.

or clone the repository, and run just all to build the libraries (in release mode) for all supported targets. (requires cross, just and nushell)

currently, linux, windows and web (wasm) is supported.

usage

take a look at the examples. the addon folder also contains a set of default properties extracted from the examples.

development

it's just a standard rust project under rust, so make sure you have rustup installed (or the toolchain specified under rust-toolchain.toml.) also don't forget to have godot installed and available in your PATH (the extension currently targets 4.3).

  • cargo features
    • enable stats feature to let the extension log into godot console timings for how long its processing the boids.

todo

  • memoize calculated distances
  • implement avoidance (point avoidance, edge avoidance)
    • implement nodes for these (for 2d, point and a rect node and 3d point and a cube node, circle / sphere too)
  • implement partitioning (quadtree/octree)
    • do we just use spatialtree crate?
  • write better usage documentation

addon for Godot that adds fast 2D / 3D boids (flocking).

Reviews

0 ratings

Your Rating

Headline must be at least 3 characters but not more than 50
Review must be at least 5 characters but not more than 500
Please sign in to add a review

Quick Information

0 ratings
Boids (2D/3D flocking) icon image
yusdacra
Boids (2D/3D flocking)

addon for Godot that adds fast 2D / 3D boids (flocking).

Supported Engine Version
4.3
Version String
0.1.2
License Version
MIT
Support Level
community
Modified Date
4 months ago
Git URL
Issue URL

Open Source

Released under the AGPLv3 license

Plug and Play

Browse assets directly from Godot

Community Driven

Created by developers for developers