Collision detection cordenates example (3.0)

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By ineedle

What I’m trying to do is detect if my character is coliding in the corners of a tile, my character uses kinematic body 2d, and tiles use rect shape 2d, I have no idea how to do this in godot

:bust_in_silhouette: Reply From: Socrates

I think we might need more information as to what you’re trying to accomplish, but you should be able to do something like if is_on_ground(): if position.x < tile.x or position.x > tile.x + tile_width. Not sure if that is what you’re asking though, sorry :confused: