首次提交

This commit is contained in:
Bob.Song
2026-03-05 18:07:55 +08:00
commit e125bb869e
4534 changed files with 563920 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
using UnityEngine;
using WaveHarmonic.Crest;
public class BuoyancyWaterProvider : MonoBehaviour, IWaterProvider
{
public WaterRenderer Water;
readonly SampleFlowHelper _SampleFlowHelper = new();
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; // 关键!不要乱给
}
}