Frontmatter
| id | 8672 |
| title | Implement Cluster Drift (Flow Fields) |
| state | Closed |
| labels | enhancementaiperformance |
| assignees | tobiu |
| createdAt | Jan 15, 2026, 3:39 AM |
| updatedAt | Jan 15, 2026, 3:49 AM |
| githubUrl | https://github.com/neomjs/neo/issues/8672 |
| author | tobiu |
| commentsCount | 1 |
| parentIssue | 8661 |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Jan 15, 2026, 3:49 AM |
Implement Cluster Drift (Flow Fields)
tobiu assigned to @tobiu on Jan 15, 2026, 3:39 AM
tobiu added parent issue #8661 on Jan 15, 2026, 3:39 AM

tobiu
Jan 15, 2026, 3:48 AM
Input from Gemini 3 Pro:
✦ I have implemented the Cluster Drift using Flow Fields.
Changes:
- Flow Field: Replaced the random drift for
PARENTnodes with a calculated Vector Field.- Algorithm: Uses a combined Sine/Cosine function based on spatial position (
x,y) andtimeto generate organic, swirling currents.- Dynamics: Parent nodes now "swim" along these currents. Since Child nodes are physically attracted to Parents (Cohesion), the entire cluster moves as a fluid swarm rather than a static group.
The result is a more biological, "living system" movement pattern.
tobiu closed this issue on Jan 15, 2026, 3:49 AM
Objective
Replace simple linear velocity/bounce for Parent nodes with organic Flow Field movement.
Tasks
PARENTnodes (Cluster Centers) should sample this field to determine their velocity (vx,vy). This will make them drift in "currents".Technical Details
updatePhysicsto apply flow vectors to Parents.