You can do a line trace traveling a certain distance. Then if it hits something, there is an obstacle.
Line Trace on API.
You can do a line trace traveling a certain distance. Then if it hits something, there is an obstacle.
Line Trace on API.
So I have a game where the player is a cube that can roll around (to make it as simple as possible). I want to add something to the actor that can check if there is an obstacle in the direction that it will move, so that I can make it NOT start moving at all if there is a wall infront of it… Any idea of how I can do that?