Install Asset
Install via Godot
To maintain one source of truth, Godot Asset Library is just a mirror of the old asset library so you can download directly on Godot via the integrated asset library browser

Quick Information

CollisionPolygon with predefined shapes just like CollisionShapeGodot's Shape node is very useful, but for example if you want to find the area of intersection between two shapes you would most likely use the Geometry singleton.But this uses polygons as PoolVector2Arrays and CollisionPolygon2D node does not have shape presets while CollisionShape2D does not have it's polygon exposed.This plugin addresses this issue by ading new CollisionPolygonShape2D Node and PolygonShape2D Resources
CollisionPolygonShape
CollisionPolygon with predefined shapes just like CollisionShape
Author | Jakub Kubulambula Janšta |
Version | 1.0 |
Godot Version | 3.4.3-stable |
License | MIT |
Why
Godot's Shape node is very useful, but for example if you want to find the area of intersection between two shapes you would most likely use the Geometry singleton.
But this uses polygons as PoolVector2Arrays and CollisionPolygon2D node does not have shape presets while CollisionShape2D does not have it's polygon exposed.
This plugin addresses this issue by ading new CollisionPolygonShape2D Node and PolygonShape2D Resources
How to use it
- Just create a new CollisionPolygonShape2D Node like any other (under CollisionPolygon2D) and in the inspector add a PolygonShape2D just as if it was CollisionShape2D.
- The Node functions just like CollisionPolygon2D.
- If you want to get the PolygonShape2D's polygon just call
get_polygon()
method on it returning PoolVector2Array.CollisionPolygonShape2D.shape.get_polygon()




License
This plugin is released under the MIT license. See LICENSE
Disclaimer :warning:
There is no warranty for any issue or bug that may break or corrupt your project.
It is advisable to keep a copy of your project.
CollisionPolygon with predefined shapes just like CollisionShape
Godot's Shape node is very useful, but for example if you want to find the area of intersection between two shapes you would most likely use the Geometry singleton.
But this uses polygons as PoolVector2Arrays and CollisionPolygon2D node does not have shape presets while CollisionShape2D does not have it's polygon exposed.
This plugin addresses this issue by ading new CollisionPolygonShape2D Node and PolygonShape2D Resources
Reviews
Quick Information

CollisionPolygon with predefined shapes just like CollisionShapeGodot's Shape node is very useful, but for example if you want to find the area of intersection between two shapes you would most likely use the Geometry singleton.But this uses polygons as PoolVector2Arrays and CollisionPolygon2D node does not have shape presets while CollisionShape2D does not have it's polygon exposed.This plugin addresses this issue by ading new CollisionPolygonShape2D Node and PolygonShape2D Resources