pandemonium_engine/doc/classes/NavigationGeometryParser2D.xml

32 lines
1.5 KiB
XML
Raw Normal View History

<?xml version="1.0" encoding="UTF-8" ?>
2024-02-25 10:26:26 +01:00
<class name="NavigationGeometryParser2D" inherits="Reference" version="4.3">
<brief_description>
Parser to contribute a node's geometry data for [NavigationPolygon] baking.
</brief_description>
<description>
Parser to contribute a node's geometry data for [NavigationPolygon] baking. If a script extends this class and the function [method _parses_node] is overridden and returns [code]true[/code], the overridden function [method _parse_geometry] gets called and can be used to add custom geometry data for the [NavigationPolygon] baking process.
</description>
<tutorials>
</tutorials>
<methods>
<method name="_parse_geometry" qualifiers="virtual">
<return type="void" />
2023-06-10 21:10:45 +02:00
<argument index="0" name="node" type="Node" />
<argument index="1" name="navigation_polygon" type="NavigationPolygon" />
<argument index="2" name="source_geometry" type="NavigationMeshSourceGeometryData2D" />
<description>
Called when overridden and the [NavigationMeshGenerator] is parsing geometry for [NavigationPolygon] baking. Custom 2D geometry can be added to the [param source_geometry].
</description>
</method>
<method name="_parses_node" qualifiers="virtual">
<return type="bool" />
2023-06-10 21:10:45 +02:00
<argument index="0" name="node" type="Node" />
<description>
Called when parsing geometry nodes for [NavigationPolygon] baking. If [code]true[/code] will call [method _parse_geometry] with this node.
</description>
</method>
</methods>
<constants>
</constants>
</class>