Water handling: Change Ray cast to OnTriggerEnter/Exit

オープン
#336 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
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時間
マージ済み PR(30日)
51

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

Gothic-Unity-Project/Gothic-Unity のほかの issue

Gothic-Unity-Project/Gothic-Unity の issue をすべて見る

似ている issue

C# の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。