alienari / bitfighter

Automatically exported from code.google.com/p/bitfighter
Other
0 stars 0 forks source link

Laserbeams and dotted walls bug #473

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Laserbeams appear to interact strangely with a dotted wall. A dotted wall is 
just a barrier with both endpoints on top of each other. If I give this barrier 
a width of 1 it results in a slightly visible dot that should still stop beams, 
players etc.

http://i.imgur.com/RiuexXV.png

In the image above, only vertical and diagonal lasers seem to stop at the 
dotted barrier, while the horizontal laser continues through. In-game, all 
three lasers actually do stop at the dotted barrier, it's just the editor that 
suggests otherwise. This occurs consistently with other positions -- horizontal 
lasers from left or right appear to go through, vertical lasers from up or down 
as well as diagonal lasers from any direction do not appear to go through.

Original issue reported on code.google.com by Jomskylark on 30 Oct 2014 at 3:33

GoogleCodeExporter commented 8 years ago
A dotted wall only exists because of some rounding code that happens to set a 
zero length wall to a length of 1, in the vertical direction.  Because it is 
always in the vertical direction, I think that the horizontal forcefields are 
missing hitting the wall because it is so thin at that angle.  

But since it works in-game, I suspect collision detection for the FF might be 1 
pixel off somewhere in the editor...

Original comment by buckyballreaction on 1 Nov 2014 at 4:17