---
title: "郭俊鑫 (@fish0048) | Hashnode"
description: "郭sir的Unity開發日誌. Read the latest articles by 郭俊鑫 on Hashnode."
url: "https://hashnode.com/@fish0048"
---

@fish0048

# 郭俊鑫

@fish0048 · Joined May 2025

郭sir的Unity開發日誌

### [【5/8 更新】2d 粒子模擬系統-萬有引力還原、全系統速度上限、能量門檻設定](https://fish0048.hashnode.dev/58-2d?utm_source=hashnode&utm_medium=feed)

1\. 純粹萬有引力還原，移除阻尼與軟化 動力學：回到經典 F=G m1m2/r2F = G\\,m\_1m\_2/r^2，不再在分母加 ε 軟化，也不做任何速度阻尼。 程式碼： // GravitationalSystem.ApplyForces() float forceMag = gravitationalConstant \* (rbA.mass \* rbB.mass) / (dist \* dist); Vector2 force = forceMag \* dir.norma...

2 min read · [fish0048.hashnode.dev](https://fish0048.hashnode.dev/58-2d?utm_source=hashnode&utm_medium=feed)

[May 12, 2025](https://hashnode.com/posts/58-2d/6821b555c9e726f8a0ecb699)

### [【5/8 更新】2d 粒子模擬系統：ui 分區、標籤管理、邊界限制與力向量可視化](https://fish0048.hashnode.dev/58-2d-ui?utm_source=hashnode&utm_medium=feed)

畫面 UI 三區塊化 標籤動態顯示與排序 畫面邊界位置強制約束 萬有引力向量可視化 以下分別介紹每個部分的需求、實作與程式碼重點。 一、畫面 UI 三區塊化 需求： 左側輸入區（僅在按下「開始」前顯示） 中間世界區（永遠用來渲染粒子本體與標籤） 右側控制區（開始後顯示所有操作按鈕／滑桿／圖表，不覆蓋世界區） 實作： 在 Canvas 下建立三個 Panel：LeftPanel、WorldPanel、RightPanel LeftPanel：固定寬 300px，掛 Ver...

3 min read · [fish0048.hashnode.dev](https://fish0048.hashnode.dev/58-2d-ui?utm_source=hashnode&utm_medium=feed)

[May 9, 2025](https://hashnode.com/posts/58-2d-ui/681d90ba7d1a09d4f5d93307)

### [Unity 2D 粒子模擬系統 — 今日更新總結](https://fish0048.hashnode.dev/unity-2d-1-1-1?utm_source=hashnode&utm_medium=feed)

已思考 2 秒鐘 在本次更新中，我們從架構、效能、物理到 UI，都進行了大規模的優化與功能擴充，包含： 模組化重構 效能優化五部曲 互動式 UI 強化 Collider2D 碰撞檢測 動態縮放與顏色漸變 邊界管理 以下依序詳述每個部分。 1. 模組化重構 ParticleManager.cs：集中管理粒子與標籤，採用物件池（Pool）技術。 GravitationalSystem.cs：只負責萬有引力計算，碰撞行為改由 HandleCollision 處理。 Partic...

2 min read · [fish0048.hashnode.dev](https://fish0048.hashnode.dev/unity-2d-1-1-1?utm_source=hashnode&utm_medium=feed)

[May 7, 2025](https://hashnode.com/posts/unity-2d-1-1-1/681b64563a43b35589e207f0)

### [今日更新總結：Unity 2D 粒子模擬系統全面優化](https://fish0048.hashnode.dev/unity-2d-1-1?utm_source=hashnode&utm_medium=feed)

2025/05/06

2 min read · [fish0048.hashnode.dev](https://fish0048.hashnode.dev/unity-2d-1-1?utm_source=hashnode&utm_medium=feed)

[May 6, 2025](https://hashnode.com/posts/unity-2d-1-1/6819d4ea3127039687f1cad9)

### [Unity 2D 粒子模擬系統——各模組詳細介紹與程式碼](https://fish0048.hashnode.dev/unity-2d-1?utm_source=hashnode&utm_medium=feed)

以下章節將逐一介紹本專案的模組化 C# 腳本，並附上完整程式碼範例與重點說明，讓你在部落格中能直接貼上閱讀。 1. ParticleManager.cs 功能：負責粒子（GameObject）實例化、質量設定、顏色與標籤管理 // ParticleManager.cs using UnityEngine; using TMPro; using System.Collections.Generic; public class ParticleManager : MonoBehaviour { ...

6 min read · [fish0048.hashnode.dev](https://fish0048.hashnode.dev/unity-2d-1?utm_source=hashnode&utm_medium=feed)

[May 6, 2025](https://hashnode.com/posts/unity-2d-1/681979c7c057a66aa22ebe83)
