Hi,
I'm trying to make a Tetris 3d like game and I'm having some problems with raycasting.
I'm using raycasting to check whether I can move on certain direction or not.
Basically I hit a button and I send a ray in that direction , if that hits something I don't allow movement in that direction.
In general it works, but it doesn't work when I'm for example on a corner, so it needs to hit in 2 directions or when I'm already touching a piece or a wall.
Any idea how to solve this problem, or any other way of handling this?
I've tried collisions but it didn't work because I need this to be directional.
Thanks.