Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

[BUG] circle collision seems inaccurate, seemingly when the clip is not a perfect square

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

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

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

調査の方向性

まず NewHitsDemo.wick を開き、clip の高さを縮めた後に circle-mode の衝突を再現します。circle hitbox の計算を追跡し、その半径を clip の原点から最遠点までの距離と比較します。非正方形の clip が期待される境界で交差を報告すれば完了です。

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

説明

bug

Describe the bug
for the circle hit mode, circle hitboxes seem to have a weird size when the width and height of the clip are different

To Reproduce
Steps to reproduce the behavior:

  1. download, unzip, and open NewHitsDemo.wick.zip
  2. take one of the objects and squish the height down
  3. run project and use circle mode
  4. take note of where the intersections claim to be

Expected behavior
the circle hitbox should have a radius equal to the distance between the origin of a clip and the farthest point away from it, as implied in the demo if you don't squish one of the clips

Screenshots

https://github.com/user-attachments/assets/59329644-642b-4752-b311-424073027e9b

1.19.3 and development version

Do you have a suggested solution to this issue? (ex. has another program fixed this bug a certain way? Are you familiar with where in the code base someone would need to fix this issue?)
the only thing i can think of is that maybe the circle hitbox takes some middle value of the width and height, but i can't be sure until looking into the actual code

主要言語
JavaScript
スター
53
フォーク
22
平均マージ
2日 10時間
マージ済み PR(30日)
12

環境構築

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

はじめの一歩

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

Candlestickers/Candlestick のほかの issue

Candlestickers/Candlestick の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

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

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