OGWPathMoveAspect Class Reference
Inherits from | OGWAspect : NSObject |
Conforms to | OGWJobDelegate |
Declared in | OGWPathMoveAspect.h |
Tasks
Path (required)
-
path
property
Options
-
speed
property -
repeatCount
property -
bidirectional
property
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.
See Also
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).
See Also
Declared In
OGWPathMoveAspect.h
Instance Methods
startPathMove
Called when the entity should move along its path.
- (void)startPathMove
Declared In
OGWPathMoveAspect.h