Search Unity

Boid sample: random results

Discussion in 'Entity Component System' started by Elfinnik159, Jun 21, 2018.

  1. Elfinnik159

    Elfinnik159

    Joined:
    Feb 24, 2013
    Posts:
    145
    I'm parsing the BoidSample example, and I ran into a problem. Each new launch gives me completely different results (position/rotation...), which differ quite a bit, but when I have millions of agents, it's very noticeable.
    Can you please tell me which part in BoidSample (or ECS) gives such a result?

    I created a scene where every fish shoots straight and if the bullet is too close to another fish, it dies (moves very far and stops processing). There are 2 teams. And each time the counter of the killed enemies at the teams is different.

    I do not use Random in my code (maybe ECS?).
    I do not use components to set a random position / rotation at the start.

    I also use the code:
    Time.captureFramerate = 50;
     
  2. Habut

    Habut

    Joined:
    May 16, 2018
    Posts:
    1