Water handling: Change Ray cast to OnTriggerEnter/Exit

未關閉
#336 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

維護者通常 1 天內回覆

還沒有人認領這個 Issue。

評估

難度
4/5
預估耗時
3-5 天
新手友好度
43/100
Issue 類型
功能
描述清晰度
基本清楚
活躍度
停滯
技術堆疊
csharp, unity
領域
game-dev

研究方向

Start by locating VRSwimDive and reading how it currently raycasts for water height. Then identify where its water level is stored and how the Unity triggers can report knee and head height; the issue gives no file or test names. Done means trigger enter and exit handle water level, the raycast is removed, and a cooldown reduces rapid toggling.

由索引模型根據 Issue 內容生成。

描述

feature

Description

Currently VRSwimDive is raycasting each frame for water height. Let's move it to the collision triggers for improved unity handling.

TODOs

  • create a trigger in knee height
  • create a trigger in head height
  • implement onTriggerEnter/Exit and handle water level value there.
  • remove raycast functionality

Reduce on-off bobbing (e.g., in water or when we walk in knee deep and the floor has smaller height differences):

  • Implement cooldown before Enter/Exit is recognized (e.g., 0.5f)
主要語言
C#
星號
33
分支
1
平均合併
1 天 17 小時
30 天內合併 PR
51

環境準備

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

Gothic-Unity-Project/Gothic-Unity 的其他 Issue

查看 Gothic-Unity-Project/Gothic-Unity 的全部 Issue

相似的 Issue

更多 C# Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。