Inherits from OGWAspect : NSObject
Conforms to OGWJobDelegate
Declared in OGWPathMoveAspect.h

Overview

Moves an entity along a path at a constant speed. Creates an OGWJob that can be re-run.

Tasks

Path (required)

Options

Start Path Move

Properties

bidirectional

Changes the way the entity moves along the path. Bidirectional means the entity moves along the path in one direction until the last path point, then turns around and moves the path back in the opposite direction to the start point.

@property BOOL bidirectional

Return Value

YES if the path move is bidirectional.

Discussion

Note: For path moves with bidirectional set to YES to make one full sweep (A to Z, then back to A) and then stop you have to set a repeatCount of 2. This is because each move from start to end, or from end to start are counted as one repeat.

Declared In

OGWPathMoveAspect.h

path

You must set the path before calling startPathMove.

@property OGWPath *path

Return Value

The OGWPath object defining the paths points.

Discussion

Warning: You must set the path before calling startPathMove.

Declared In

OGWPathMoveAspect.h

repeatCount

Keeps repeating the path for this number of times. If set to 0 the entity will move along the path indefinitely. Otherwise it will stop after traversing the path repeatCount times.

@property GWUInteger repeatCount

Return Value

How often the path move repeats. Default is 0 (forever/loop).

Declared In

OGWPathMoveAspect.h

speed

The speed at which the entity moves along the path. Defaults to 1.

@property GWFloat speed

Return Value

The speed at which the entity moves along the path. Defaults to 1.

Declared In

OGWPathMoveAspect.h

Instance Methods

startPathMove

Called when the entity should move along its path.

- (void)startPathMove

Declared In

OGWPathMoveAspect.h