# After Effects - Abstract Space Scene

Full Tutorial:

{% embed url="<https://www.youtube.com/watch?v=RGHCgzvR4cc>" %}

Code for the Moon's rotation:

```javascript
let mainPoint = thisComp.layer("SUN").transform.position;
let lastPoint = position;

let distanceX = mainPoint[0] - lastPoint[0];
let distanceY = mainPoint[1] - lastPoint[1];

let myAngle = Math.atan2(distanceY, distanceX);

radiansToDegrees(myAngle);
```


---

# 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://frangiordano96.gitbook.io/ae-expressions/after-effects-abstract-space-scene.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.
