修改鱼线

This commit is contained in:
2026-03-22 18:14:35 +08:00
parent 04d6446a76
commit 21c8775b58
5 changed files with 17 additions and 18 deletions

View File

@@ -56,10 +56,10 @@ namespace NBF
if (rod != null && rod.Line != null && rod.Line.Lure != null)
{
// 使用 ChargedProgress 作为力度系数 (0-1)
float throwForce = 20f + ChargedProgress * 100f;
float throwForce = 20f + ChargedProgress * 50f;
// 水平向前 + 向上抛出,形成抛物线轨迹
Vector3 throwDirection = PlayerView.Unity.FppLook.transform.forward;// + Vector3.up * throwUpAngle;
Vector3 throwDirection = PlayerView.Unity.transform.forward;// + Vector3.up * throwUpAngle;
rod.Line.Lure.RBody.AddForce(throwDirection.normalized * throwForce, ForceMode.VelocityChange);
}

View File

@@ -117,9 +117,9 @@ namespace NBF
public void SetTargetLength(float value)
{
Log.Error($"SetObiRopeStretch={value}");
if (value > 1)
if (value > 3)
{
// value -= 0.2f;
value -= 0.2f;
}
fishingRope.SetTargetLength(value);
}