Rapier Sleeping Body wake up code misses 1 frame of gravity

Aperta
#148 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

@OptimusPi ci sta già lavorando.

Dal 18/11/2026.

  • #147 di @OptimusPi — aperta

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
45/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
react, three.js, typescript
Ambito
backend, game-dev

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
TypeScript
Stelle
823
Fork
102
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di pmndrs/ecctrl

Tutte le issue di pmndrs/ecctrl

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.