Edit of asset "Basic Shape Creation" Accepted
Old/Current | New/Edit | |
---|---|---|
Title | Basic Shape Creation | Complex Shape Creation |
Description |
An addon for the Godot Engine which adds a few basic functions for creating and modifying shapes, and a few nodes that use those functions to create shapes and use them. These functions and nodes are written in GDScript to make them universally compatible. They are exposed to C# via wrapper classes in the `BasicShapeCreation` namespace. --- Nodes --- Currently, there are 2 nodes offered: - BasicPolygon2D - General purpose node for creating, drawing, and exporting shapes - BasicCollisionPolygon2D - A specialization of BasicPolygon2D that provides collision shapes to a parent, similar to CollisionPolygon2D. --- Functions --- Functions are provided under the BasicGeometry2D singleton. The provided functions include: - add_shape - Creates a shape and inserts it into the provided array at the provided index. - add_ring - Takes a shape and duplicates its points to be some proportional amount closer to the shape center. - add_rounded_corners - Takes a shape and rounds the corners. |
An addon for the Godot Engine which adds several functions for creating and modifying shapes, and a few nodes that uses those functions for creating visuals or for creating collision shapes. These functions and nodes are written in GDScript to make them universally compatible. They are exposed to C# via wrapper classes in the `ComplexShapeCreation` namespace. --- Nodes --- Currently, there are 4 nodes: - RegularPolygon2D < 'Polygon2D' - General purpose node for drawing shapes. - SimplePolygon2D < 'Node2D' - counterpart to RegularPolygon2D that only draws simpler shapes. - StarPolygon2D < 'Polygon2D' - Version of RegularPolygon2D for drawing stars. - RegularCollisionPolygon2D < 'CollisionShape2D' - Node for creating both regular and star collision shapes. --- Functions --- Currently, functions used for creating shapes are split across the multiple nodes added. Most of them are in RegularPolygon2D. Some exceptions are: - a simplified version of 'get_shape_vertices' is in SimplePolygon2D. - 'widen_polyline' and 'widen_multiline' are in RegularCollisionPolygon2D. - 'get_star_vertices' is in StarPolygon2D. The 'get_*' functions create shapes and returns a new 'PackedVector2Array'. All other functions modify the array passed in as the argument. |
Category | 2D Tools | 2D Tools |
License | MIT | MIT |
Repository Provider | GitHub | GitHub |
Repository Url | https://github.com/9thAzure/basic_shape_creation | https://github.com/9thAzure/Complex_Shape_Creation |
Issues Url | https://github.com/9thAzure/basic_shape_creation/issues | https://github.com/9thAzure/Complex_Shape_Creation/issues |
Godot version | Godot 4.2 | Godot 4.1 |
Version String | 3.0.0 | 2.0.0 |
Download Commit | 23df41394262b1adc54b2802701bc8c095ad3f48 | 19dbb7cf388fe55793f4fe9c95cebfca88b4d4ba |
Download Url (Computed) | https://github.com/9thAzure/basic_shape_creation/archive/23df41394262b1adc54b2802701bc8c095ad3f48.zip | https://github.com/9thAzure/Complex_Shape_Creation/archive/19dbb7cf388fe55793f4fe9c95cebfca88b4d4ba.zip |
Icon Url |
https://raw.githubusercontent.com/9thAzure/basic_shape_creation/23df41394262b1adc54b2802701bc8c095ad3f48/images/basic_polygon2d.png
![]() |
https://raw.githubusercontent.com/9thAzure/Complex_Shape_Creation/476c6ee94b5e5687d549ccc76a658692e0aba6d9/images/regular_polygon_2d.png
![]() |
Preview Insert | ||
---|---|---|
Type | image | |
Image/Video URL |
https://raw.githubusercontent.com/9thAzure/Complex_Shape_Creation/476c6ee94b5e5687d549ccc76a658692e0aba6d9/images/regular_polygon_2d_properties.png
![]() |
|
Thumbnail |
|
Preview Insert | ||
---|---|---|
Type | image | |
Image/Video URL |
https://raw.githubusercontent.com/9thAzure/Complex_Shape_Creation/476c6ee94b5e5687d549ccc76a658692e0aba6d9/images/star_polygon_2d_properties.png
![]() |
|
Thumbnail |
|