Rapier Sleeping Body wake up code misses 1 frame of gravity

未关闭
#148 0 条评论 0 个 reaction 已指派 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. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

pmndrs/ecctrl 的其他 Issue

查看 pmndrs/ecctrl 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。