提交测试脚本

This commit is contained in:
2026-03-02 00:03:29 +08:00
parent 7712c73be2
commit f07a52f2f0
12 changed files with 1450 additions and 117 deletions

View File

@@ -0,0 +1,21 @@
using UnityEngine;
public class BuoyancyWaterProvider : MonoBehaviour, IWaterProvider
{
public float waterLevel = 0f;
public float GetWaterHeight(Vector3 worldPos)
{
return waterLevel;
}
public Vector3 GetWaterNormal(Vector3 worldPos)
{
return Vector3.up;
}
public Vector3 GetWaterVelocity(Vector3 worldPos)
{
return Vector3.zero; // 关键!不要乱给
}
}