Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

[Released] Swarm2D 1.3.0

Discussion in 'Assets and Asset Store' started by joe_waster, Jan 28, 2021.

  1. joe_waster

    joe_waster

    Joined:
    Dec 1, 2020
    Posts:
    3
    Hi,
    I've just released my first asset on the store. It's a 2D boid simulation, aimed at controlling large swarms of game objects.

    https://assetstore.unity.com/packages/tools/ai/swarm2d-187676

    The prefabs allow you to generate many copied of your own game object and they control it as a swarm, adding in customisable behaviours such as "target", "avoid", "waypoints". They can also collide with other game objects.

    Almost everything is parameterised and available in the inspector. It's also easy to implement your own behaviours and collisions.


    As a rough benchmark, I have a 4 year old 4 core i7-6700, and a GTX980Ti. On the CPU version it can handle ~800 objects in the swarm, and on the GPU version over 10,000.







    I've been working on it for a game I'm building and plan on releasing a few assets from the game if there is enough interest...
     
  2. joe_waster

    joe_waster

    Joined:
    Dec 1, 2020
    Posts:
    3
    Just updated to 1.3.0

    Recent changes:
    • 1.3.0:
      • Added gravity and location behaviours
      • Boids can automatically removed after a set amount of time
      • Refactored emitters in one single script/prefab (legacy emitters still work)
      • Added point emitter
    • 1.2.1: Bugfix- Save button wasnt always saving
    • 1.2.0: Added button to save swarm parameters during play mode
    • 1.1.0: Setting to select forward facing direction of boid added
    Example of the new behaviours:
     
  3. joe_waster

    joe_waster

    Joined:
    Dec 1, 2020
    Posts:
    3
    Updated to 1.4.0
    • Added new obstacle avoidance method - configurable number of raycasts to determine turn direction (low performance, but better behaviour)
    • Added jitter to boids
    • Added method to BoidLite to allow boids to be killed properly (or actually reused within the pool) from out side the swarm
    • Bugfix: CPU version wasn’t calculating boid movement properly