Table of Contents

Enum CollisionPolygon2D.BuildModeEnum

Namespace
Godot
Assembly
GodotSharp.dll
public enum CollisionPolygon2D.BuildModeEnum : long

Fields

Segments = 1

Collisions will only include the polygon edges. In this mode the node has the same effect as a single ConcavePolygonShape2D made of segments, with the restriction that each segment (after the first one) starts where the previous one ends, and the last one ends where the first one starts (forming a closed but hollow polygon).

Solids = 0

Collisions will include the polygon and its contained area. In this mode the node has the same effect as several ConvexPolygonShape2D nodes, one for each convex shape in the convex decomposition of the polygon (but without the overhead of multiple nodes).