Broken P2 physics (world) bounds since Phaser 2.7.0

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

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
42/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
javascript
Lĩnh vực
game-dev

Hướng nghiên cứu

Compare the working Phaser 2.6.2 CodePen with the broken 2.7.0 example, focusing on the interaction between world bounds and P2 physics bounds when the world bounds are slightly larger. Identify where left-bound handling changes between those versions; done means the left bound stops the player as expected while the other bounds continue to work.

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

Mô tả

bug help wanted

This Issue is about

  • A bug in the API:
    • Phaser version(s): tested 2.6.2, 2.7.0 and 2.10.1
    • Live example: https://codepen.io/anon/pen/bvNXmW
    • What should happen: physics left bound should stop player
    • What happens instead: player can move right through until he hits world bound with very strange effect

There seems to be an issue with world bounds or to be more precise a combination of world bounds and P2 physics bounds that has been introduced in Phaser 2.7.0 and is still there in 2.10.1.
Setting up a world with world bounds slightly bigger than P2 physics bounds has the effect that top, right and bottom bounds work as expected but left is broken.
Same code is working fine in Phaser 2.6.2.

Working (2.6.2): https://codepen.io/anon/pen/GxgVQp
Broken (2.7.0): https://codepen.io/anon/pen/bvNXmW

Ngôn ngữ chính
JavaScript
Star
1.4k
Fork
485
Merge trung bình
1 ngày 2 giờ
Pull request đã merge (30 ngày)
9

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

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 phaserjs/phaser-ce

Tất cả issue của phaserjs/phaser-ce

Issue tương tự

Thêm issue về JavaScript

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.