浮漂逻辑
This commit is contained in:
@@ -2,17 +2,7 @@
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public interface IWaterProvider
|
||||
{
|
||||
/// <summary>返回该世界坐标下的水面高度</summary>
|
||||
float GetWaterHeight(Vector3 worldPos);
|
||||
|
||||
/// <summary>可选:水面法线(没有就返回 Vector3.up)</summary>
|
||||
Vector3 GetWaterNormal(Vector3 worldPos);
|
||||
|
||||
/// <summary>可选:水流速度(没有就返回 Vector3.zero)</summary>
|
||||
Vector3 GetWaterVelocity(Vector3 worldPos);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 多点采样浮力:考虑形状(采样点分布)、重心(Rigidbody.centerOfMass)、扭矩(在点上施力)。
|
||||
|
||||
Reference in New Issue
Block a user