Rapier Sleeping Body wake up code misses 1 frame of gravity

Đang mở
#148 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

@OptimusPi đang làm issue này rồi.

Từ ngày 18/11/2026.

  • #147 của @OptimusPi — đang mở

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
45/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
react, three.js, typescript
Lĩnh vực
backend, game-dev

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
TypeScript
Star
823
Fork
102
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của pmndrs/ecctrl

Tất cả issue của pmndrs/ecctrl

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.