hi!
my code:
extends NavigationRegion3D
func _ready() -> void:
var collision_shape = $MeshInstance3D/StaticBody3D/CollisionShape3D
var nav_mesh = NavigationMesh.new()
nav_mesh.agent_height = 2.0
nav_mesh.agent_max_slope = 30.0
var source_geometry = NavigationMeshSourceGeometryData3D.new()
NavigationMeshGenerator.parse_source_geometry_data(nav_mesh, source_geometry, collision_shape)
print(source_geometry.vertices)
NavigationMeshGenerator.bake_from_source_geometry_data(nav_mesh, source_geometry)
navigation_mesh = nav_mesh
my nodes


output result


Question:
Why is source_geometry empty?
And how do I generate and apply NavigationMesh correctly?
PS: I don't speak English well, but I will try to understand you. Thanks!