[behavior] rex_boids

Post your completed addons to share with the community

» Wed Mar 18, 2015 7:26 am

Update:

@Kyatric
B
108
S
26
G
271
Posts: 4,471
Reputation: 151,777

» Wed Mar 18, 2015 7:31 am

@irina

Yes, I did not add collision avoidance with neighbors in this case, to make them grabbing feed crazily no matter they are bumping together.
B
108
S
26
G
271
Posts: 4,471
Reputation: 151,777

» Wed Mar 18, 2015 12:30 pm

Moved.
New to Construct ? Where to start

Please attach a capx to any help request or bug report !
Moderator
B
291
S
114
G
95
Posts: 7,293
Reputation: 70,144

» Fri Jun 19, 2015 3:28 pm

ThanksI rextaimbow, looking in to moving groups. This sounds promising.
working on Rally Racing
B
8
S
1
G
2
Posts: 48
Reputation: 1,076

» Wed Jun 24, 2015 4:03 pm

I noticed some funky behavior with the alignment forces, and I looked at the code. It seems like you are using a naive average for angles, which can sometimes result in odd things such as -170 and 170 averaging to 0 instead of 180
B
14
S
5
G
1
Posts: 189
Reputation: 1,536

» Wed Jun 24, 2015 5:56 pm

Thanks, I had updated this behavior. I first change angle(radians) to clamped degree which is 0~360, then get average of degree. Finally turn back average degree to angle(radians).
B
108
S
26
G
271
Posts: 4,471
Reputation: 151,777

» Wed Jun 24, 2015 8:48 pm

@rexrainbow

Hi, is it possible to set boids to follow something... like a leader of flock?
If he moves, flock moves... if he stops the flock stops...

tnx!
B
26
S
11
G
2
Posts: 669
Reputation: 5,038

» Thu Jun 25, 2015 2:32 am

@irina

Yes, this behavior only provides a leading angle, designer need apply this angle by itself in event sheet.
B
108
S
26
G
271
Posts: 4,471
Reputation: 151,777

» Thu Jun 25, 2015 9:59 am

@rexrainbow

thanx... ill fiddle with options to see what i can come up with.
One question... your capx in FF starts with 50 fps and after minute or even less drops to 10 ...
is that normal?
B
26
S
11
G
2
Posts: 669
Reputation: 5,038

» Mon Jun 29, 2015 3:26 pm

@irina

Tested on my pc, it always runs at 59 fps.
B
108
S
26
G
271
Posts: 4,471
Reputation: 151,777

PreviousNext