diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2024-08-19 16:04:49 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2024-08-19 16:04:49 +0200 |
commit | da57bab16989e2690e1481331d25952b7c342f16 (patch) | |
tree | a7699b1f7b7354917dacc1acaaab5c5fbc19733d /doc | |
parent | 0ab62a128a12f35cb1e589b8cd33676a385bcc13 (diff) | |
parent | 110b2dc61a95dc59e5aabaaaaeb9ceff63789159 (diff) | |
download | redot-engine-da57bab16989e2690e1481331d25952b7c342f16.tar.gz |
Merge pull request #92560 from smix8/navmesh2d_bake_partition
Add triangulation partition option to 2D navigation mesh baking
Diffstat (limited to 'doc')
-rw-r--r-- | doc/classes/NavigationPolygon.xml | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/doc/classes/NavigationPolygon.xml b/doc/classes/NavigationPolygon.xml index eebdc817a7..68fbc05931 100644 --- a/doc/classes/NavigationPolygon.xml +++ b/doc/classes/NavigationPolygon.xml @@ -193,6 +193,9 @@ <member name="parsed_geometry_type" type="int" setter="set_parsed_geometry_type" getter="get_parsed_geometry_type" enum="NavigationPolygon.ParsedGeometryType" default="2"> Determines which type of nodes will be parsed as geometry. See [enum ParsedGeometryType] for possible values. </member> + <member name="sample_partition_type" type="int" setter="set_sample_partition_type" getter="get_sample_partition_type" enum="NavigationPolygon.SamplePartitionType" default="0"> + Partitioning algorithm for creating the navigation mesh polys. See [enum SamplePartitionType] for possible values. + </member> <member name="source_geometry_group_name" type="StringName" setter="set_source_geometry_group_name" getter="get_source_geometry_group_name" default="&"navigation_polygon_source_geometry_group""> The group name of nodes that should be parsed for baking source geometry. Only used when [member source_geometry_mode] is [constant SOURCE_GEOMETRY_GROUPS_WITH_CHILDREN] or [constant SOURCE_GEOMETRY_GROUPS_EXPLICIT]. @@ -202,6 +205,15 @@ </member> </members> <constants> + <constant name="SAMPLE_PARTITION_CONVEX_PARTITION" value="0" enum="SamplePartitionType"> + Convex partitioning that yields navigation mesh with convex polygons. + </constant> + <constant name="SAMPLE_PARTITION_TRIANGULATE" value="1" enum="SamplePartitionType"> + Triangulation partitioning that yields navigation mesh with triangle polygons. + </constant> + <constant name="SAMPLE_PARTITION_MAX" value="2" enum="SamplePartitionType"> + Represents the size of the [enum SamplePartitionType] enum. + </constant> <constant name="PARSED_GEOMETRY_MESH_INSTANCES" value="0" enum="ParsedGeometryType"> Parses mesh instances as obstruction geometry. This includes [Polygon2D], [MeshInstance2D], [MultiMeshInstance2D], and [TileMap] nodes. Meshes are only parsed when they use a 2D vertices surface format. |