Inverted CollisionPolygon2D 2D
T

Publisher

templatedev

Inverted CollisionPolygon2D 2D

2D
Collision Polygon Inversion GDScript Visual Customizable Tutorial PhysicsBody2D

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! This tool comes with instructions to create your first Inverted CollisionPolygon2D with ease below in the read me section! https://github.com/TemplateDev/Inverted-CollisionPolygon2D/tree/main

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:

  1. Enable the plugin!

image

  1. 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)

image image

  1. Select the CollisionPolygon2D node and press the polygon button! You can also go to 'Project -> Tools -> Invert Polygon' to invert!

image

Your CollisionPolygon2D should go from this:

Screenshot 2024-04-22 032545

to this:

Screenshot 2024-04-22 032612

Want to keep a CollisionPolygon2D updated with Polygon2D?

  1. Find the InvertedCollisionPolygon2D node.

image

  1. Set the polygon and you are all setup!

image