# Only Follow Camera

Using *SimpleFollow*'s *Axis Masks* property, you can easily create a 2D-like camera which tracks location only on specified axes. For example, if your character is jumping on platforms and you want to ignore x-axis movement, then you can set the first element of *Axis Masks* as zero. But it is noteworthy that *Axis Masks* is applied in world space.

<figure><img src="/files/vuxRbZUKceNuzB4RUere" alt=""><figcaption></figcaption></figure>

1. Right click on Content Browser -> "Blueprint Class" -> create a "ECameraBase" class.
2. Open the class blueprint, select the "Camera Settings Component" and on the "Details" panel, expand the "ECamera" section.
3. Choose *SimpleFollow* for "Follow Component". You do not need to specify an aim component.
4. In *SimpleFollow*, set *Follow Type* to *World Space*, and set *Follow Offset* that you want to keep with the target actor. More importantly, set *Axis Masks*, masking out the axis that you would like the camera to ignore.
5. In the blueprint where you want to call this camera, invoke the "CallCamera" node and pass in the "Camera Class" and "Follow Target". It is mandatory to pass a location vector and a rotator to parameters *SpawnLocation* and *SpawnRotation*. The *SpawnLocation* should be the sum of target's location and the follow offset specified at *Follow Offset*. The *SpawnRotation* should be the direction you want the camera to look at. You can also specify "Blend Time", "Blend Func" and "Blend Exp" if you want smooth blending in. Ensure to disable *Preserve State*.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://sulleyyys-organization.gitbook.io/manuals-of-ccs/showcases/only-follow-camera.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
