collision-2d
collision-2d copied to clipboard
2d collision routines
see https://github.com/noonat/intersect/blob/master/src/intersect.ts#L229-L241
a handy hidden function that is buried in the `src/` directory.
the existing tests are disabled, and there should be more. Some of these tests could be copied from https://github.com/noonat/intersect/tree/master/test
probably could use https://www.gamasutra.com/view/feature/131790/simple_intersection_tests_for_games.php?page=2
Is there any way to implement cone -> sphere and segment overlap system?
cannon.js has a reasonable looking implementation, maybe use this? https://github.com/schteppe/cannon.js/blob/master/src/collision/AABB.js#L288
NPM?
I feel bad to say that I bounced off this lib for three reasons: Its perfect in concept, but lacks NPM support as far as I can tell. I started...
As I'm moving away from webgl to webgpu in all my other projects, it makes sense to adopt a vector/matrix lib that matches what webgpu expects. https://wgpu-matrix.org/