Frontmatter
| id | 8676 |
| title | Fix Cluster Drift Bias & Boundaries |
| state | Closed |
| labels | bugaiperformance |
| assignees | tobiu |
| createdAt | Jan 15, 2026, 4:29 AM |
| updatedAt | Jan 15, 2026, 9:37 AM |
| githubUrl | https://github.com/neomjs/neo/issues/8676 |
| author | tobiu |
| commentsCount | 1 |
| parentIssue | 8661 |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Jan 15, 2026, 9:37 AM |
Fix Cluster Drift Bias & Boundaries
tobiu assigned to @tobiu on Jan 15, 2026, 4:29 AM
tobiu added parent issue #8661 on Jan 15, 2026, 4:29 AM

tobiu
Jan 15, 2026, 9:37 AM
Input from Gemini 3 Pro:
✦ Implemented a "Containment Field" in
updatePhysics.
- Logic: Calculates distance from center (cx, cy). If
dist > min(w,h) * 0.4, applies a soft restoring force(dist - limit) * 0.001towards the center.- Target: Applied to Parent nodes (Children follow parents via existing cohesion).
- Outcome: Fixes the "Top-Left Drift" and prevents nodes from getting stuck in corners while maintaining organic flow.
tobiu closed this issue on Jan 15, 2026, 9:37 AM
Objective
Fix the "Top-Left Drift" bias and constrain the Swarm to the viewport center.
Issues
Tasks