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

Abierto Apto para principiantes
#533 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
82/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
csharp, unity
Área
game-dev, mobile

Línea de trabajo

Empieza con XriRig.UpdateCrouch, que, según el issue, vuelve a calcular el offset en cada frame. Comprueba cómo se aplica el offset de agacharse a la cámara y cómo se registra la altura de la cabeza; luego ejecuta el proyecto en VR y repite los pasos indicados. El trabajo está terminado cuando agacharse baja la vista y el movimiento posterior de la cabeza sigue cambiando su altura.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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
Lenguaje dominante
C#
Estrellas
33
Forks
1
Merge medio
2 d 4 h
PR fusionados (30 d)
76

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de Gothic-Unity-Project/Gothic-Unity

Todos los issues de Gothic-Unity-Project/Gothic-Unity

Issues similares

Más issues de C#

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.