void OnDrawGizmos() { //Gizmos.color = Color.red; //Gizmos.DrawSphere(new Vector3(0,0,0),.25f); Gizmos.color = Color.green; Gizmos.DrawSphere(new Vector3(5, 0, 0), .25f); Gizmos.color = Color.blue; if (BestFirstSearchPlanner) { if (outputPlan == null) { return; } if (outputPlan.Count > 0) { BestFirstPlanner.VisualizeContainer(ContainerType.Plan, Color.blue, .1f); } BestFirstPlanner.VisualizeContainer(ContainerType.Visited, Color.magenta, .1f); } else { if (plan == null) { return; } if (plan.Count > 0) { planner.VisualizeContainer(ContainerType.Plan, Color.blue, .1f); } planner.VisualizeContainer(ContainerType.Visited, Color.magenta, .1f); } }
void OnDrawGizmos() { if (planner == null) { return; } if (showVisited) { planner.VisualizeContainer(ContainerType.Visited, Color.magenta, .20f); } if (showOpen) { planner.VisualizeContainer(ContainerType.Open, Color.green, .20f); } if (outputPlan != null) { planner.VisualizeContainer(ContainerType.Plan, Color.blue, .20f); } }