Skip to content

class_convexpolygonshape2d

reduz edited this page Feb 23, 2014 · 9 revisions

ConvexPolygonShape2D

Inherits: Shape2D\n\n

Brief Description

Convex Polygon Shape for 2D physics

Member Functions

Description

Convex Polygon Shape for 2D physics.

Member Function Description

  • void set_point_cloud ( Vector2Array point_cloud ) \ Create the point set from a point cloud. The resulting convex hull will be set as the shape.
  • void set_points ( Vector2Array points ) \ Set a list of points in either clockwise or counter clockwise order, forming a convex polygon.
  • Vector2Array get_points ( ) const \ Return a list of points in either clockwise or counter clockwise order, forming a convex polygon.

Clone this wiki locally