Rapier Sleeping Body wake up code misses 1 frame of gravity

オープン
#148 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

@OptimusPi がすでに取り組んでいます。

2026年11月18日 から。

  • #147 @OptimusPi による — オープン

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
45/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
react, three.js, typescript
領域
backend, game-dev

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
TypeScript
スター
823
フォーク
102
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

pmndrs/ecctrl のほかの issue

pmndrs/ecctrl の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。