There is some collective motion that does by animal groups, such as bird flocks, fish school, insect swarms. In nature, Structural order showed movement and direction every single individual makes them safer and more efficient. The desire to flock is dependent on the nearest-neighbor distance, even though there are other parameters that can affect flocking. To get more insight into this system, we manipulate interaction with each particle in two situations. In a static condition, we set each particle to interact with their group only, which means the particle will not respond to other entities that not selected. In a dynamic situation, we set each particle can interact with a predator as long as the neighbor is in the orientation and attraction zones of the particle. The Newtonian approach used to handle physical parameters such as position, velocity, and, acceleration of the particles, then these physical parameters are calculated and updated by the Euler integration. Some patterns appear in our simulation, such as line formation and dynamic parallel group.

1.
C.W.
Reynolds
.
ACM SIGGRAPH Comput. Graph.
21
, pp.
25
34
(
1987
).
2.
Y.
Li
.,
R.
Lukeman
. &
L.
Edelstein-keshet
.
Physica D
237
, pp.
699
720
(
2008
).
3.
A
,
Czirók
.,
N.
Vicsek
&
T.
Vicsek
.
Physica A: Statistical Mechanics and. its Applications
264
, pp.
299
304
(
1999
).
4.
H. S.
Niwa
.
Journal Of Theorical Biology
181
, pp.
47
63
(
1996
).
5.
T.
Vicsek
. &
A.
Zafeiris
.
Physics Reports
517
, pp.
71
140
(
2012
).
6.
I.D.
Couzin.
,
J.
Krause
,
R.
James
,
G.D.
Ruxton
. &
N. R.
Franks
Journal of Theoretical Biology
218
. pp.
1
11
(
2002
).
7.
M.
Frame
. &
G.W.
Flake
.
Am. Math. Mon.
107
, pp.
576
(
2000
).
8.
A.
Mogilner
,
L.
Edelstein-Keshet
,
L.
Bent
&
A.
Spiros
.
Journal of Mathematical Biology
47
, (
2003
).
9.
T.
Iliass
,
D.
Cambui
,
M.
Grosso
.
International Journal of Modern Physics B
30
, pp.
1
11
(
2016
).
10.
S.
Raynaud
.
3D Boids with Quad Tree.
(
2018
).
11.
G.
Vásárhelyi
,
C.
Virágh
,
G.
Somorjai
&
T.
Nepusz
.
Science Robotics
3536
, pp.
1
14
(
2018
).