This commit is contained in:
Bob.Song
2026-03-03 16:23:56 +08:00
parent bc7e3d3c44
commit cbfe9581b1
5 changed files with 281 additions and 217 deletions

View File

@@ -0,0 +1,24 @@
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);
}
}
}

View File

@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 3444ef411bcf4f7fa35c03ec7d800ff8
timeCreated: 1772525731