Forums > Jitter

can increase the number of boids without causing a reset.

November 30, 2007 | 3:56 pm

hello dear community

when i’m increasing the number of boids, each boid is relocated in a apparently randomly choosen position. but for my project i wish them to stay in the current position when i create a new one. the latter should be put (e.g.) into the position of the attraction point.
anybody has got some suggestions how i could achieve this? or just a hint for the right way?
thanks a lot

rhe


November 30, 2007 | 5:04 pm

sorry for that: i am referring the boids2d object.
cheers
rhe


November 30, 2007 | 5:53 pm

how about defining the maximum number of boids you will be using at
the beginning, and just using a jit.submatrix before the draw sequence
to hide the non-needed ones?

On Nov 30, 2007, at 10:56 AM, ivo wrote:

>
> hello dear community
>
>
> when i’m increasing the number of boids, each boid is relocated in a
> apparently randomly choosen position. but for my project i wish them
> to stay in the current position when i create a new one. the latter
> should be put (e.g.) into the position of the attraction point.
> anybody has got some suggestions how i could achieve this? or just a
> hint for the right way?
> thanks a lot
>
> rhe
>


November 30, 2007 | 5:57 pm

a possible strategy is to start with as many boids as you ultimately need
and "unmask" them when needed.
you can simulate the "begin from emitter" effect with watching the next
batch and just before they appear run a fake boid from center to their known
position.
a hack

On Nov 30, 2007 7:04 PM, ivo wrote:

>
> sorry for that: i am referring the boids2d object.
> cheers
> rhe
>


Viewing 4 posts - 1 through 4 (of 4 total)