# Cube

On this page we will describe and explain the Cube example that ships with Animate. The cube example demonstrates how you can use Animate to create animations that modify the transform of an actor, e.g. to be used in level or environment design.

You can find the blueprint at `Blueprints/Examples/Cube/BP_AnimateCube` in the plugin content folder. Double-click it to open it.

:::note You can create a child blueprint of this class to quickly create a new actor with the same logic. :::

### Components

The blueprints consists of the mesh we want to control, and three pairs of `Value Source + Value Interpreter`. One for location, rotation and one for scale.

### Variables

In the variables section you can find the curve vectors and curve configurations used in this example.

### Construction Script

The Construction Script does three things for each pair of `Value Source + Value Interpreter`.

We tell the `Value Interpreter` which mesh it should modify, then tell the `Value Interpreter` which `Value Source` to listen to and finally configure the `Value Source` with our curves.

### Value Interpreter

The `Location`, `Rotation` and `Scale` interpreter components are all very similar.

We just set up the `Curve Value Updated` event to set the location based on the current curve data.

<mark style="color:blue;">The target actor is optional in interpreter components. If you'd like to update an array of actors or implement any custom behaviour you're free to do so!</mark>

### Result


---

# 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://docs.kia.dev/animate/examples/cube.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.
