Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

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

Aperta
#55 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
48/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
javascript
Ambito
game-dev

Direzione di ricerca

Inizia aprendo NewHitsDemo.wick e riproducendo la collision in circle-mode dopo aver ridotto l’altezza di un clip. Traccia il calcolo della circle hitbox e confronta il suo raggio con la distanza dall’origine del clip al suo punto più lontano; il lavoro è terminato quando i clip non quadrati segnalano intersezioni al confine previsto.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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

Lingua principale
JavaScript
Stelle
53
Fork
22
Merge medio
2g 10h
PR unite (30g)
12

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Candlestickers/Candlestick

Tutte le issue di Candlestickers/Candlestick

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.