I have a RigidBody2D and a TileMap in the world. Even when the RigidBody is not touching the TIleMap, it still detects it. Why?
Here is the code:
for i in get_colliding_bodies():
if i.name != name:
on_ground = true # If I am touching something other than myself. Then I am on the ground (Supposed to occur when the RigidBody2D and TileMap are touching).
break
else:
on_ground = false # If I don't touch anything, then I am not on the ground.
This is a rather big issue, because it controls jumping.