Editar

Compartir a través de


GKGoal.GetGoalToAlign(GKAgent[], Single, Single) Method

Definition

Factory method to produce a GKGoal appropriate for flocking behavior, aligning the agents (see also GetGoalToSeparate(GKAgent[], Single, Single) and GetGoalToCohere(GKAgent[], Single, Single)).

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

Parameters

agents
GKAgent[]
maxDistance
Single
maxAngle
Single

Returns

Attributes

Applies to