class_convexpolygonshape2d - dragonsoulz/godot GitHub Wiki

ConvexPolygonShape2D

####Inherits: Shape2D ####Category: Core

Brief Description

Convex Polygon Shape for 2D physics

Member Functions

Description

Convex Polygon Shape for 2D physics.

Member Function Description

set_point_cloud

Create the point set from a point cloud. The resulting convex hull will be set as the shape.

set_points

Set a list of points in either clockwise or counter clockwise order, forming a convex polygon.

get_points

Return a list of points in either clockwise or counter clockwise order, forming a convex polygon.