> Learn the basics of the FollowCamera.

Source: https://doc.babylonjs.com/features/introductionToFeatures/chap8/follow

# Getting Started - Follow That Character

## Follow That Character

Without using parenting, we can also track the character's movements with a *FollowCamera*.

We give a *FollowCamera* a start position, a target to follow, and a goal position from which to view the target. 

We create the *FollowCamera* with a name, start position and the optional scene parameter.
```javascript
const camera = new BABYLON.FollowCamera("FollowCam", new BABYLON.Vector3(-6, 0, 0), scene);
```

We then set the goal: 
height above the center of the target;
```javascript
camera.heightOffset = 8;
```

radial distance from target plus height offset;
```javascript	
camera.radius = 1;
```

rotation, in degrees, center of target in x y plane;
```javascript
camera.rotationOffset = 0;
```

acceleration in moving from current to goal position;
```javascript
camera.cameraAcceleration = 0.005
```

speed at which acceleration is halted 
```javascript
camera.maxCameraSpeed = 10
```	

Of course, we also attach the camera to the canvas.
```javascript
    camera.attachControl(canvas, true);
```

Finally, we set the target.
```javascript
camera.lockedTarget = targetMesh;
```

- [Playground: Follow The Character](https://playground.babylonjs.com/#KBS9I5#98) - Use the follow cam to follow the character around the village.

Having created a 3D world, albeit just a small village, it would be good to see it in all its 3D glory. All you need is a 3D viewer, whether a simple one such as Google Cardboard or a high-tech one, and the appropriate camera from Babylon.js.
