GKGoal.GetGoalToCohere(GKAgent[], Single, Single) 方法

定义

工厂方法生成 GKGoal 适合群发行为、保持靠近其他代理 (另 GetGoalToSeparate(GKAgent[], Single, Single) 请参阅和 GetGoalToAlign(GKAgent[], Single, Single)) 。

[Foundation.Export("goalToCohereWithAgents:maxDistance:maxAngle:")]
public static GameplayKit.GKGoal GetGoalToCohere (GameplayKit.GKAgent[] agents, float maxDistance, float maxAngle);
static member GetGoalToCohere : GameplayKit.GKAgent[] * single * single -> GameplayKit.GKGoal

参数

agents
GKAgent[]
maxDistance
Single
maxAngle
Single

返回

属性

适用于