Inherits from OALAction
Declared in OALAudioActions.h

Overview

Moves the target from its current position to the specified position over time in 3D space.

Tasks

Properties

position

The position to move the target to.

@property (readwrite, assign, nonatomic) ALPoint position

Declared In

OALAudioActions.h

unitsPerSecond

The speed at which to move the target. If this is 0, the target will be moved at the speed determined by duration.

@property (readwrite, assign, nonatomic) float unitsPerSecond

Declared In

OALAudioActions.h

Class Methods

actionWithDuration:position:

Create a new action.

+ (id)actionWithDuration:(float)duration position:(ALPoint)position

Parameters

duration

The duration of the move.

position

The position to move to.

Return Value

A new action.

Declared In

OALAudioActions.h

actionWithUnitsPerSecond:position:

Create a new action.

+ (id)actionWithUnitsPerSecond:(float)unitsPerSecond position:(ALPoint)position

Parameters

unitsPerSecond

The rate of movement.

position

The position to move to.

Return Value

A new action.

Declared In

OALAudioActions.h

Instance Methods

initWithDuration:position:

Initialize an action.

- (id)initWithDuration:(float)duration position:(ALPoint)position

Parameters

duration

The duration of the move.

position

The position to move to.

Return Value

The initialized action.

Declared In

OALAudioActions.h

initWithUnitsPerSecond:position:

Initialize an action.

- (id)initWithUnitsPerSecond:(float)unitsPerSecond position:(ALPoint)position

Parameters

unitsPerSecond

The rate of movement.

position

The position to move to.

Return Value

The initialized action.

Declared In

OALAudioActions.h