GKObstacleGraph.ConnectNodeUsingObstacles 方法

定义

重载

ConnectNodeUsingObstacles(GKGraphNode2D)

将 节点添加到 GKGraph,将其连接到其最近的邻居,避免 Obstacles

ConnectNodeUsingObstacles(GKGraphNode2D, GKPolygonObstacle[])

将 节点添加到 GKGraph,将其连接到其最近的邻居,避免 Obstacles 除了 中的 obstaclesToIgnore邻居。

ConnectNodeUsingObstacles(GKGraphNode2D)

将 节点添加到 GKGraph,将其连接到其最近的邻居,避免 Obstacles

[Foundation.Export("connectNodeUsingObstacles:")]
public virtual void ConnectNodeUsingObstacles (GameplayKit.GKGraphNode2D node);
abstract member ConnectNodeUsingObstacles : GameplayKit.GKGraphNode2D -> unit
override this.ConnectNodeUsingObstacles : GameplayKit.GKGraphNode2D -> unit

参数

属性

适用于

ConnectNodeUsingObstacles(GKGraphNode2D, GKPolygonObstacle[])

将 节点添加到 GKGraph,将其连接到其最近的邻居,避免 Obstacles 除了 中的 obstaclesToIgnore邻居。

[Foundation.Export("connectNodeUsingObstacles:ignoringObstacles:")]
public virtual void ConnectNodeUsingObstacles (GameplayKit.GKGraphNode2D node, GameplayKit.GKPolygonObstacle[] obstaclesToIgnore);
abstract member ConnectNodeUsingObstacles : GameplayKit.GKGraphNode2D * GameplayKit.GKPolygonObstacle[] -> unit
override this.ConnectNodeUsingObstacles : GameplayKit.GKGraphNode2D * GameplayKit.GKPolygonObstacle[] -> unit

参数

obstaclesToIgnore
GKPolygonObstacle[]
属性

适用于