# CCActionBezierBy Class Reference

Inherits from | CCActionInterval : CCActionFiniteTime : CCAction : NSObject
Conforms to | NSCopying
Declared in | CCActionInterval.h

## Overview

This action that moves the target with a cubic Bezier curve by a certain distance.

## Tasks

- `+ actionWithDuration:bezier:`
- `– initWithDuration:bezier:`

## Class Methods

### actionWithDuration:bezier:

Creates the action with a duration and a bezier configuration.

`+ (id)actionWithDuration:(CCTime)t bezier:(ccBezierConfig)c`

#### Parameters

t

  Action duration.

c

  Bezier configuration.

#### Return Value

New bezier action.

#### Declared In

`CCActionInterval.h`

## Instance Methods

### initWithDuration:bezier:

Initializes the action with a duration and a bezier configuration.

`- (id)initWithDuration:(CCTime)t bezier:(ccBezierConfig)c`

#### Parameters

t

  Action duration.

c

  Bezier configuration.

#### Return Value

New bezier action.

#### Declared In

`CCActionInterval.h`