
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:
- 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!