ConvexShape:getFace

Edit

Returns the indices of points that make up one of the faces of the convex hull.

points = ConvexShape:getFace(index)

Arguments

NameTypeDescription
indexnumber The index of the face.

Returns

NameTypeDescription
pointstable A table with point indices. Use ConvexShape:getPoint to get the coordinates. The points are given in counterclockwise order.

See also