Inverts all of your problems with the CollisionPolygon2D! If the Polygon2D is able to invert its points, so should CollisionPolygon2D as well! This plugin does just that!
How to use:
- Enable the plugin!
- Copy the PackedVector2Array of a polygon2D and paste it into the CollisionPolygon2D of your node! (In general, you may not need to copy a Polygon2D)
- Select the CollisionPolygon2D node and press the polygon button! You can also go to 'Project -> Tools -> Invert Polygon' to invert!
Your CollisionPolygon2D should go from this:
to this:
Want to keep a CollisionPolygon2D updated with Polygon2D?
- Find the InvertedCollisionPolygon2D node.
- Set the polygon and you are all setup!