Contents

init(toWander:)

Creates a goal whose effect is to make an agent wander aimlessly, moving forward and turning at random.

Declaration

convenience init(toWander speed: Float)

Parameters

  • speed:

    The forward speed for affected agents to maintain while turning at random.

Return Value

A new goal object.

See Also

Creating Goals for General Movement Behavior