I am detecting collisions between two CollisionShape2D nodes, that are synchronized for mp purposes.
With collider debug turned on, when the two shapes collide, I observe a small red square at the point of contact. What is this, I cannot find reference to it?
I move one shape from it’s spawn location, to another location. The collider debug shows the collision shape moves with the parent node as expected. The collision between the two nodes no longer occurs. A collision is still possible between with the previous position (even though, there are no visible colliders in debug mode). Also, the red collision square still appears where the point of contact would have been.
It is a debug draw for a contact point when two shapes collided.
Your second screenshot is pretty wild, does that happen for long? How are you moving the other shapes? Biggest question of all: does it affect gameplay? It could be that the debug draw is slow to update or buggy, in which case I wouldn’t worry about it.
It affects gameplay. By moving around and interacting with the ‘invisible’ collider, it is clear it is the same, circular collider, that is being drawn in a different location.
I am not sure how to debug why the collision calculations are taking place in one location, and the colliders are drawn in a separate (and expected) location.