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

Open Beginner friendly
#533 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
82/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
csharp, unity
Domain
game-dev, mobile

Research direction

Start with XriRig.UpdateCrouch, which the issue identifies as recomputing the offset every frame. Check how the crouch offset is applied to the camera and how head height is tracked, then run the project in VR and repeat the listed steps. Done when crouching lowers the view while subsequent head movement still changes its height.

Written by the indexing model from the issue text.

Description

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
Dominant language
C#
Stars
33
Forks
1
Avg merge
2d 4h
Merged PRs (30d)
76

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Gothic-Unity-Project/Gothic-Unity

All issues in Gothic-Unity-Project/Gothic-Unity

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.