detect-collisions icon indicating copy to clipboard operation
detect-collisions copied to clipboard

feat: supports collision filtering

Open noih opened this issue 1 year ago • 1 comments

I implemented a group method similar to box2d collision filtering that uses only bit operations, ensuring minimal performance impact. The stress demo has also been updated for observing the results.

I'll be using this functionality but unsure if others will also need it ~

noih avatar Apr 20 '24 19:04 noih

I didn't include dist / docs in the commit due to potential conflicts with multiple PRs, but I'm unsure if it's more convenient for you.

noih avatar Apr 21 '24 07:04 noih

this is quite interesting and I mostly like it

I will clone adjust and merge

see this in a few days @noih !!

thank you for pull request !!

nenjack avatar May 24 '24 17:05 nenjack

awesome MR I've read all

I plan to move:

  Box: dec("0000 0000 0000 0001"),
  Circle: dec("0000 0000 0000 0010"),
  Ellipse: dec("0000 0000 0000 0100"),
  Line: dec("0000 0000 0000 1000"),
  Polygon: dec("0000 0000 0001 0000"),

to some export in lib

and reuse it

then build dist and docs

thanks @noih !!

nenjack avatar May 24 '24 18:05 nenjack

also

"I'll be using this functionality but unsure if others will also need it" was basically why I started making opensource

nenjack avatar May 24 '24 18:05 nenjack

actually I don't see any breakin changes here SO YOLO I MERGE AND THEN UPDATE

nenjack avatar May 24 '24 18:05 nenjack

@noih published https://github.com/Prozi/detect-collisions/releases/tag/v9.6.0

nenjack avatar May 24 '24 18:05 nenjack