CollisionPolygonShape

An asset by Kubulambula
The page banner background of a mountain and forest
CollisionPolygonShape hero image

Quick Information

0 ratings
CollisionPolygonShape icon image
Kubulambula
CollisionPolygonShape

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

Supported Engine Version
3.4
Version String
1.1
License Version
MIT
Support Level
community
Modified Date
2 years ago
Git URL
Issue URL

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

0 ratings

Your Rating

Headline must be at least 3 characters but not more than 50
Review must be at least 5 characters but not more than 500
Please sign in to add a review

Quick Information

0 ratings
CollisionPolygonShape icon image
Kubulambula
CollisionPolygonShape

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

Supported Engine Version
3.4
Version String
1.1
License Version
MIT
Support Level
community
Modified Date
2 years ago
Git URL
Issue URL

Open Source

Released under the AGPLv3 license

Plug and Play

Browse assets directly from Godot

Community Driven

Created by developers for developers