According to early-to-medieval Buddhism, as I understand, the self and (probably) world are like swarms/flocks of bees, birds, or fish: each particle more-or-less doing its part for some larger purpose with more-or-less thought, each particle itself a swarm of smaller particles — momentary configurations of some basic, common-to-everything, connected-but-separate flashes (not stable points) of energy, with the swarm’s complexity having slowly aggregated/evolved over billions of years. A feeling of a stable self emerges from the swarm, but it is an illusion. Swarms of food, water, air, thoughts from other people or objects, etc. are constantly affecting or replacing parts of oneself. These are several ways in which ancient Buddhism was/is similar to modern physics, biology, and complex adaptive system theories.
“All composite things are impermanent. Strive for liberation [from this state of existence] with diligence” (the Buddha’s final words, my translation from Pali).