Water handling: Change Ray cast to OnTriggerEnter/Exit

Abierto
#336 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
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
43/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
csharp, unity
Área
game-dev

Línea de trabajo

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.

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

Descripción

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

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.