init(triangleIndices:vertices:offMeshConnections:configuration:)
Creates a NavigationMeshResource from triangle indices and vertices. This will take the input geometry and configuration and process it into a Navigation Mesh. The input and final geometry of the Navigation Mesh may not match, as it strives to simplify regions and match the configuration to determine what areas are walkable.
Declaration
init(triangleIndices: [UInt32], vertices: [SIMD3<Float>], offMeshConnections: [NavigationMeshResource.OffMeshConnection] = [], configuration: NavigationMeshResource.Configuration) throwsSee Also
Creating a navigation mesh
init(mesh:offMeshConnections:configuration:)init(mesh:offMeshConnections:configuration:)init(meshDescriptor:offMeshConnections:configuration:)init(meshDescriptor:offMeshConnections:configuration:)init(triangleIndices:vertices:offMeshConnections:configuration:)init(polygonIndices:vertices:offMeshConnections:configuration:areas:flags:heightData:)