public void BuildNavMesh(BuildConfiguration config) { if (PluginLoader.PluginExists) { BuildResult = PluginLoader.NavMeshPlugin.BuildNavMesh(config); NavMeshLoaded(this, EventArgs.Empty); } }
public void BindTo(BuildConfiguration configuration) { _tilesPerSide.CurrentValue = configuration.TilesPerSide; _cellsPerTileSide.CurrentValue = configuration.CellsPerTileSide; _agentRadius.CurrentValue = configuration.AgentRadius; _agentHeight.CurrentValue = configuration.AgentHeight; _cellsPerAgentHeight.CurrentValue = configuration.CellsPerAgentHeight; _walkableClimb.CurrentValue = configuration.WalkableClimb; _walkableSlope.CurrentValue = configuration.WalkableSlope.Degrees; _borderSize.CurrentValue = configuration.BorderSize; _minRegionArea.CurrentValue = configuration.MinRegionArea; _mergeRegionArea.CurrentValue = configuration.MergeRegionArea; _tesselateSolidEdges.IsChecked = configuration.TesselateSolidEdges; _tesselateEdgesBetweenAreas.IsChecked = configuration.TesselateEdgesBetweenAreas; _maxEdgeLength.Text = configuration.MaxEdgeLength.ToString("F1"); _maxEdgeDeviation.CurrentValue = configuration.MaxEdgeDeviation; _vertsPerPoly.CurrentValue = configuration.MaxVertsPerPoly; _contourSampleDistance.CurrentValue = configuration.ContourSampleDistance; _maxContourDeviation.CurrentValue = configuration.MaxContourDeviation; }