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

Offen Anfängerfreundlich
#533 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
2/5
Geschätzter Aufwand
1-3 Stunden
Anfängerfreundlichkeit
82/100
Issue-Typ
Bug
Klarheit
Klar beschrieben
Aktivitätsstatus
Aktiv
Tech-Stack
csharp, unity
Bereich
game-dev, mobile

Rechercherichtung

Beginne mit XriRig.UpdateCrouch, das laut Issue den Offset in jedem Frame neu berechnet. Prüfe, wie der Crouch-Offset auf die Kamera angewendet und wie die Kopfhöhe erfasst wird. Führe das Projekt dann in VR aus und wiederhole die aufgeführten Schritte. Fertig ist es, wenn sich die Sicht beim Ducken senkt und nachfolgende Kopfbewegungen ihre Höhe weiterhin verändern.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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
Vorherrschende Sprache
C#
Sterne
33
Forks
1
Ø Merge
2 T. 4 Std.
Gemergte PRs (30 T.)
76

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus Gothic-Unity-Project/Gothic-Unity

Alle Issues in Gothic-Unity-Project/Gothic-Unity

Ähnliche Issues

Weitere Issues zu C#

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.