fix(fix-system): 修正线盘松弛预判朝向与绷紧判定
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user