diff options
| author | tradam <git.tradam.fyi> | 2021-08-16 14:09:49 -0400 |
|---|---|---|
| committer | tradam <git.tradam.fyi> | 2021-08-16 14:09:49 -0400 |
| commit | ebb9245ccef8a6b9c908f82ecea6bea26dde14b5 (patch) | |
| tree | fdc07b453526028f8d84f10e2e0bb1a22ac6941c /README.mdown | |
| parent | 30c2e72d5b5558120f67a3b395d06b87c4afc7d9 (diff) | |
| download | arbitrary-polygon-collision-ebb9245ccef8a6b9c908f82ecea6bea26dde14b5.tar.gz arbitrary-polygon-collision-ebb9245ccef8a6b9c908f82ecea6bea26dde14b5.zip | |
it works
Diffstat (limited to 'README.mdown')
| -rw-r--r-- | README.mdown | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/README.mdown b/README.mdown index 26024b5..bc923e1 100644 --- a/README.mdown +++ b/README.mdown @@ -1,7 +1,5 @@ # hints and notes for Debugging -- Shape A for some reason is not understood by the hitbox detection correctly -As can be seen with the debug lines, one of the lines is drawn diagnal when it instead should of been drawn online one of the edges. The other line has been determined to be of length 0 so it is as if the points are swapped. Despite both shapes using what appear to be essentially the same code only one of the two shapes are in error. If the a and b shapes are swapped then the issue switches shapes(from a to b) so the issue doesnt appear to be with declaring the shapes but rather something in the hitbox logic. -- (Maybe??) because of this strange diagnal, it seems that the shapes collision is not correctly determined(try moving the shape just outside the lower left corner of the square and you can see it detects a collision where there is none) +If the shape is brought to the bottom left corner then the hitbox collision fails # Links for the math see the comments at the top of `run.rb` for links that explain the math |
