davidyu / Sonar

Networked multiplayer SHMUP-lite
http://lewenyu.com/sonar
MIT License
0 stars 0 forks source link

Fix graphical glitches when processing Sonar waves #4

Closed davidyu closed 10 years ago

davidyu commented 10 years ago

As of now, there are still inexplicable line-extensions when detecting Sonar collisions:

bug_line_extension

Feature?

davidyu commented 10 years ago

This is possibly due to the degenerate case where the the center of the sonar and the two endpoints of the line are on the same line.

Sonars have a fixed location and do not move with the player.

davidyu commented 10 years ago

Fixed in f5f187da4912eac9203f790e0ce8dc995ad87b84. I was using an incorrect point to construct another point in the case where a line is partially inside the circle.

davidyu commented 10 years ago

Reopening:

bug

Vertical wall traces are not drawing.

davidyu commented 10 years ago

Fixed in b4fcc7d93bd05348ca1712a3698010b3d3c22c97. It turns out we were just never taking this particular edge into account (last, first). I just specified the first vertex again at the end.