Merge pull request #56334 from skyace65/ConvexWarning

Add warning to only use convex hull points when setting the point property of convex polygon 2D
This commit is contained in:
Max Hilbrunner 2021-12-31 17:50:10 +01:00 committed by GitHub
commit 54132ba788
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -20,7 +20,7 @@
</methods>
<members>
<member name="points" type="PackedVector2Array" setter="set_points" getter="get_points" default="PackedVector2Array()">
The polygon's list of vertices. Can be in either clockwise or counterclockwise order.
The polygon's list of vertices. Can be in either clockwise or counterclockwise order. Only set this property with convex hull points, use [method set_point_cloud] to generate a convex hull shape from concave shape points.
</member>
</members>
</class>