Body moving when colliding (bug?)

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

Hi, I have a problem I can’t wrap my head around:

My character is a kinematicBody2D with an oval collisionShape2D around its feet.

An obstacle is a kinematicBody2D (I chose kinematicBody because it has to move in some cases like if the character hits it, in which case a knockback causes the obstacle to move), with a collisionpolygon2D drawn as a hollow rectangle (see video for a visual aid)

If my character is inside the rectangle and I move around, the obstacle mysteriously moves with the character (but not always), why is that? Is it a bug? I have made sure that it wasn’t moving because of any stray knockback value.

video: Imgur: The magic of the Internet