com.iron-mountain.boids
v1.3.4
Published
A library for spawning and using boids.
Downloads
2
Readme
Boids
Version: 1.3.4 A library for spawning and using boids.
Use Cases:
- Making boids with flocking behaviour
Package Mirrors:
Key Scripts & Components:
- public class Boid : MonoBehaviour
- Properties:
- public BoidManager Manager { get; }
- public Boolean OverrideManagerSpeed { get; set; }
- public float InstanceSpeed { get; set; }
- Methods:
- public void Initialize(BoidManager newManager)
- Properties:
- public class BoidManager : MonoBehaviour
- Actions:
- public event Action OnBoidsChanged
- Properties:
- public ContainerAvoidanceSettings ContainerAvoidance { get; }
- public ColliderAvoidanceSettings ColliderAvoidance { get; }
- public List Boids { get; }
- Methods:
- public void Register(Boid boid)
- public void Unregister(Boid boid)
- public void DestroyBoids()
- Actions:
- public class BoidSpawner : MonoBehaviour
- Properties:
- public BoidManager Manager { get; set; }
- public Boid Prefab { get; set; }
- public Int32 Amount { get; set; }
- Methods:
- public virtual List`1 SpawnBoids()
- Properties:
- public interface IBoidSpawner
- Properties:
- public BoidManager Manager { get; set; }
- Methods:
- public abstract List`1 SpawnBoids()
- Properties:
Containers
- public abstract class BoidContainer : MonoBehaviour
- Properties:
- public Vector3 Offset { get; set; }
- public Vector3 Position { get; set; }
- public Vector3 Scale { get; }
- Methods:
- public abstract Vector3 GetRandomWorldPositionInContainer()
- public abstract Boolean WorldPositionIsInContainer(Vector3 worldPosition)
- public abstract Vector3 ClosestPointInOrOnContainer(Vector3 worldPosition)
- Properties:
- public class BoidContainerCube : BoidContainer
- Properties:
- public Vector3 Dimensions { get; set; }
- Methods:
- public override Vector3 GetRandomWorldPositionInContainer()
- public override Boolean WorldPositionIsInContainer(Vector3 worldPosition)
- public override Vector3 ClosestPointInOrOnContainer(Vector3 worldPosition)
- Properties:
- public class BoidContainerHemisphere : BoidContainer
- Methods:
- public override Vector3 GetRandomWorldPositionInContainer()
- public override Boolean WorldPositionIsInContainer(Vector3 worldPosition)
- public override Vector3 ClosestPointInOrOnContainer(Vector3 worldPosition)
- Methods:
- public class BoidContainerSphere : BoidContainer
- Methods:
- public override Vector3 GetRandomWorldPositionInContainer()
- public override Boolean WorldPositionIsInContainer(Vector3 worldPosition)
- public override Vector3 ClosestPointInOrOnContainer(Vector3 worldPosition)
- Methods: