Distance Constraint
在 Forge Dynamics 模擬中將 Shape 約束到其原始位置。
Spring Position - 當沒有連接時,約束的位置是 Body 的起始位置。如果連接了變換(例如 Null),則該變換的位置將用於所有 Body。
Horizontal Alignment - 將約束的位置對齊到 Body 的左 (-1) 或右 (1) 邊緣。
Vertical Alignment - 將約束的位置對齊到 Body 的頂部 (1) 或底部 (-1) 邊緣。
Rest Length - 彈簧嘗試恢復到的長度。
Minimum Length - 設定彈簧可壓縮的最小長度。
Maximum Length - 設定彈簧可拉伸的最大長度。
Frequency (Hz) - 數值越高,彈簧的彈跳越大。
Damping Ratio - 數值越高,彈簧越快恢復到靜止狀態。
Breakable - 啟用時,約束可被其他力打斷。
Breaking Mode - 設定約束斷裂的條件:
- Force - 當力超過 Breaking Force 時約束斷裂。
- Distance - 當約束超出其 Stretch Limit 時斷裂。
- Time - 當超過 Breaking Force 的力持續超過 Breaking Duration 指定的連續影格數時,約束斷裂。
Breaking Force - 設定斷裂約束所需的力量大小。
Stretch Limit - 設定約束在斷裂前被拉伸的 Rest Length 倍數。例如,如果 Rest Length 為 100,Stretch Limit 為 2,則約束在拉伸到 100×2=200 時斷裂。
Breaking Duration - 設定約束在斷裂前必須處於超過 Breaking Force 的力下的連續影格數。
Stress Threshold - 設定約束斷裂的閾值,表示為 Breaking Force 的百分比。