R
Robert
Guest
I have a 32x32 grid dungeon and a wall is a single cell, so I have a bunch of walls repeating to create the illusion of a single continuous wall. This has worked just fine for everything else, but when it comes to bouncing objects off them there is a problem. It seems that when the bouncing object hits the edge of two touching walls the resulting bounce angle might be inverted because it hit the corner of the back facing wall and not the corner of the front facing wall.
See the image below to help understand. The green arrow is the angle I want the ball the go, and the yellow arrow is the angle it goes. Im pretty sure it's because it is hitting that corner of wall 1, and not the back corner of wall 2.
See the image below to help understand. The green arrow is the angle I want the ball the go, and the yellow arrow is the angle it goes. Im pretty sure it's because it is hitting that corner of wall 1, and not the back corner of wall 2.
Last edited by a moderator: