# [behavior] rex_boids

### » Wed Mar 18, 2015 7:26 am

Update:

@Kyatric
Goodbye
B
114
S
31
G
295
Posts: 4,549
Reputation: 164,608

### » 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.
Goodbye
B
114
S
31
G
295
Posts: 4,549
Reputation: 164,608

### » 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
311
S
128
G
101
Posts: 7,417
Reputation: 75,230

### » 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: 49
Reputation: 1,078

### » 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).
Goodbye
B
114
S
31
G
295
Posts: 4,549
Reputation: 164,608

### » 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
37
S
16
G
3
Posts: 861
Reputation: 6,752

### » 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.
Goodbye
B
114
S
31
G
295
Posts: 4,549
Reputation: 164,608

### » 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
37
S
16
G
3
Posts: 861
Reputation: 6,752

### » Mon Jun 29, 2015 3:26 pm

@irina

Tested on my pc, it always runs at 59 fps.
Goodbye
B
114
S
31
G
295
Posts: 4,549
Reputation: 164,608

PreviousNext