fix(fix-system): 修复线盘底座旋转未生效
This commit is contained in:
@@ -196,14 +196,14 @@ namespace AibisDream.FixSystem
|
||||
|
||||
private void Update()
|
||||
{
|
||||
// 拖拽/插接时转盘朝拉力方向转动,闲置时缓动回正
|
||||
// 拖拽/插接时转盘朝插头方向转动,闲置时缓动回正。
|
||||
// 不再要求线缆完全绷紧,否则送线会让 tautness 长时间为 0,视觉上看不到旋转。
|
||||
if (CableReelRef != null && physicCableRef != null
|
||||
&& physicCableRef.State != PhysicCable.CableState.Hidden)
|
||||
{
|
||||
bool active = physicCableRef.State == PhysicCable.CableState.Dragging
|
||||
|| physicCableRef.State == PhysicCable.CableState.Plugged;
|
||||
float tautness = active ? physicCableRef.GetTautness() : 0f;
|
||||
CableReelRef.UpdateRotation(active, tautness);
|
||||
CableReelRef.UpdateRotation(active);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user