How do you have a KinematicBody2D Collide With A CollisionPolygon2D?

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

I’ve been trying to get my character to collide with a CollisionPolygon2D which is connected to a StaticBody2D, but it won’t collide with the KinematicBody2D-

:bust_in_silhouette: Reply From: mdubaisi

first of all if the disabled property in the Polygon2D is on turn it off.
second if you are using the CollisionLayers and the CollisionMasks check that the CollisionMask of the StaticBody is set to the same bit as the KinematicBody’s CollisionLayer bit.