Skip to content

class_convexpolygonshape2d

reduz edited this page Feb 23, 2014 · 9 revisions

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 ==

  • 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. == set_points ==
  • void #set_points( Vector2Array points ) \ Set a list of points in either clockwise or counter clockwise order, forming a convex polygon. == get_points ==
  • Vector2Array #get_points(****) const \ Return a list of points in either clockwise or counter clockwise order, forming a convex polygon.

Clone this wiki locally