修改bobber浮力脚本

This commit is contained in:
Bob.Song
2026-03-03 15:50:04 +08:00
parent 23d06a1efc
commit bc7e3d3c44
23 changed files with 702 additions and 1740 deletions

View File

@@ -1,24 +0,0 @@
using System;
using NBF;
using UnityEngine;
namespace Test
{
public class BobberTest : MonoBehaviour
{
public Rigidbody rb;
public FLine line;
public float lineLength = 1f;
public float floatLength = 0.5f;
public void Start()
{
line.InitTest(rb);
//有浮漂
line.Lure.SetJointDistance(floatLength);
line.Bobber.SetJointDistance(lineLength - floatLength);
line.SetObiRopeStretch(lineLength - floatLength);
}
}
}