Rapier Sleeping Body wake up code misses 1 frame of gravity

Abierto
#148 0 comentarios 0 reacciones 0 asignados Ver en GitHub

@OptimusPi ya está trabajando en esto.

Desde el 18/11/2026.

  • #147 de @OptimusPi — abierto

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
45/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
react, three.js, typescript
Área
backend, game-dev

Línea de trabajo

The issue points to the Rapier body sleep and wake-up code and to pull request #147; inspect that change first to understand the missing return and the extra frame without gravity. Reproduce the rocking at different frame rates, including 30 FPS and 120 FPS, and trace whether rolling tires also contribute. Done when waking a sleeping vehicle no longer causes the reported bump and rocking.

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

Descripción

Missing one frame of gravity and them "bumping up": the tires to wake the vehicle causes most cars to wildly and visibly rock backk and forth forever.

The solutiuon is 2 part smaybe, or 1 part ( see my pr #147 )

Part 1) When the rapier body sleeps the car tires are still rolling. A possible fix is to stop the tires. I don;t like that idea 100% as much

Part 2) Fix the bug where it accidentally forgot to return in the cod e(see my pr) and causes 1 useFrame 1 frame of exytra bump up with no gravity

This is why it works fine in 120FPS adn not in 30FPS, etc.

Lenguaje dominante
TypeScript
Estrellas
823
Forks
102
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

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 pmndrs/ecctrl

Todos los issues de pmndrs/ecctrl

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.