|Topic was automatically imported from the old Question2Answer platform.
I have a kinematicbody2D walking randomly in 4 directions (up, right, down, left) and I want that when the kinematicbody2d collides with a wall - that is made by tilemap - it can recognize the collision, to change the direction of random move.
I was think the
**is_on_wall** method was used to do this, but I didn’t understand the documentation. Am I right and
**is_on_wall** will serves to me or it have another way to do the collision recognition between kinematicbody2d with a wall?