Player is a KinematicBody and enemy is a Rigidbody. I'm using moveandslide() to move player. When they collided, each both push them opposite direction, so it seems like physics stuffs working, however when I try to get collided object, it always returns null.
Using moveandcollide() returns null, and try this way also returns null:
for index in get_slide_count():
var collision = get_slide_collision(index)
However when I changed the type of enemy to StaticBody, now it gives me enemy. But I don't want to use StaticBody to enemy, they needed to move! Why get collided is always null even it's collided with Rigidbody?