Contents

init(toReachTargetSpeed:)

Creates a goal whose effect is to accelerate or decelerate an agent until it reaches the specified speed.

Declaration

convenience init(toReachTargetSpeed targetSpeed: Float)

Parameters

  • targetSpeed:

    The speed for affected agents to reach.

Return Value

A new goal object.

See Also

Creating Goals for General Movement Behavior