fix(fix-system): 修正线盘松弛预判朝向与绷紧判定

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-07-27 22:48:10 +08:00
co-authored by Cursor
parent bc4475ae66
commit 65735dec52
3 changed files with 18 additions and 13 deletions
@@ -92,10 +92,11 @@ namespace AibisDream.FixSystem
return;
}
// 线缆还有余量时不驱动转盘,避免"还没拉紧就先转"
// 松弛时不驱动转盘,并缓动回正,避免出线口对着插头“预判”朝向
if (tautness <= 0f)
{
angularVelocity *= Mathf.Exp(-angularDamping * Time.deltaTime);
angularVelocity = 0f;
currentAngle = Mathf.LerpAngle(currentAngle, 0f, returnSpeed * Time.deltaTime);
ApplyRotation();
return;
}