From d8f68fa38079e9389998f7671b7767d0ccb63b65 Mon Sep 17 00:00:00 2001 From: axewizardbgg Date: Mon, 10 Feb 2025 19:07:16 -0500 Subject: [PATCH] Docs: BitMap: Added description for opaque_to_polygons method --- doc/classes/BitMap.xml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/doc/classes/BitMap.xml b/doc/classes/BitMap.xml index 11de04d35..f8eec9354 100644 --- a/doc/classes/BitMap.xml +++ b/doc/classes/BitMap.xml @@ -62,6 +62,9 @@ + Generates polygon outlines from the opaque (non-transparent) areas of the [BitMap] using a Marching Squares algorithm. + Returns an [Array] of [PoolVector2Array], where each [PoolVector2Array] represents a polygon outline. These outlines can be directly assigned to the [code]polygon[/code] property of nodes like [CollisionPolygon2D] or [OccluderPolygon2D]. + The [code]epsilon[/code] parameter controls polygon simplification. A lower value produces more accurate polygons, but at the cost of increased polygon size and potential performance impact. A higher value simplifies the polygons, reducing their size and improving performance, but with less accuracy.