# ArcFollowCamera

Arc Rotate version of the follow camera. It still follows a Defined mesh but in an Arc Rotate Camera fashion.

see

http://doc.babylonjs.com/features/cameras#follow-camera

## Constructors

### constructor

Find examples in Playground
• Instantiates a new ArcFollowCamera

see

http://doc.babylonjs.com/features/cameras#follow-camera

#### Parameters

• ##### name: string

Define the name of the camera

• ##### alpha: number

Define the rotation angle of the camera around the logitudinal axis

• ##### beta: number

Define the rotation angle of the camera around the elevation axis

Define the radius of the camera from its target point

• ##### target: Nullable<AbstractMesh>

Define the target of the camera

• ##### scene: Scene

Define the scene the camera belongs to

## Properties

### alpha

Find examples in Playground
alpha: number

The longitudinal angle of the camera

### beta

Find examples in Playground
beta: number

The latitudinal angle of the camera

Find examples in Playground

Define the current direction the camera is moving to

### cameraRotation

Find examples in Playground
cameraRotation: Vector2

Define the current rotation the camera is rotating to

### lockedTarget

Find examples in Playground
lockedTarget: any

Define the current target of the camera as an object or a position.

### noRotationConstraint

Find examples in Playground
noRotationConstraint: boolean

Add constraint to the camera to prevent it to move freely in all directions and around all axis.

Find examples in Playground

The radius of the camera from its target

### rotation

Find examples in Playground
rotation: Vector3

Define the current rotation of the camera

### rotationQuaternion

Find examples in Playground
rotationQuaternion: Quaternion

Define the current rotation of the camera as a quaternion to prevent Gimbal lock

### speed

Find examples in Playground
speed: number

Define the current speed of the camera

### target

Find examples in Playground

Define the camera target (the messh it should follow)

### updateUpVectorFromRotation

Find examples in Playground
updateUpVectorFromRotation: boolean

When set, the up vector of the camera will be updated by the rotation of the camera

## Methods

### getClassName

Find examples in Playground
• getClassName(): string
• Returns the class name of the object. It is mostly used internally for serialization purposes.

### getFrontPosition

Find examples in Playground
• getFrontPosition(distance: number): Vector3
• Gets the position in front of the camera at a given distance.

#### Parameters

• ##### distance: number

The distance from the camera we want the position to be

the position

### getTarget

Find examples in Playground
• Return the current target position of the camera. This value is expressed in local space.

#### Returns Vector3

the target position

### setTarget

Find examples in Playground
• Defines the target the camera should look at.

#### Parameters

• ##### target: Vector3

Defines the new target as a Vector or a mesh

### storeState

Find examples in Playground
• Store current camera state of the camera (fov, position, rotation, etc..)

#### Returns Camera

the camera

Generated using TypeDoc