Crouch button pins the head to one height - moving the head up or down does nothing

未关闭 适合新手
#533 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
82/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
csharp, unity
领域
game-dev, mobile

调研方向

从 XriRig.UpdateCrouch 开始,issue 指出它会在每一帧重新计算偏移量。检查下蹲偏移量如何应用到摄像机,以及头部高度如何跟踪,然后在 VR 中运行项目并重复列出的步骤。下蹲时视野降低,之后头部移动仍能改变视野高度,即表示完成。

由索引模型根据 Issue 内容生成。

描述

bug
Description

After crouching with the button, the view sits at one fixed height. Moving the head up or down in reality doesn't change it, which feels wrong.

Expected Behavior

The crouch button lowers the view by an offset. From there the view follows the real head as usual: lean down and it goes lower, stretch and it goes higher.

Actual Behavior

The view is pulled back to the crouch height every frame, whatever the real head does.

Reproduction Steps
  1. Press the crouch button.
  2. Move the head up and down.
  3. The view stays at the same height.

Environment Information

  • Reproducibility: Always
  • Platform: Quest 3 (editor streamed over WiVRn)
  • Game Version: develop at 66d78d4cb
Cause

XriRig.UpdateCrouch recomputes the crouch offset every frame from the current head height, so that the camera ends exactly at the crouch height. A higher head only makes the offset bigger.

Logs/Screenshots/Videos
  • Logs attached
  • Screenshot attached
  • Video attached
主要语言
C#
星标
33
派生
1
平均合并
2 天 4 小时
30 天内合并 PR
76

环境准备

从这里开始

  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 摘要。