> For the complete documentation index, see [llms.txt](https://hiveminddocs.gitbook.io/hivemind/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hiveminddocs.gitbook.io/hivemind/code-systems/ultimate-building-system-framework-ubs/proxy-behaviour/trace-behaviour.md).

# Trace Behaviour

The `Trace Behaviour` class allows you to create custom logic for proxy placement. For example, the **First Person Forward Trace**, included in the plugin, uses a first-person camera and a set forward trace distance to determine where to place the proxy.\
\
Make sure to return the hit result as it is essential for the proxy to be placed correctly.

<figure><img src="/files/669P5n7ieaGy0Wr4SNr1" alt=""><figcaption><p>Example of a Trace Behavior Execute Function</p></figcaption></figure>

To create your own trace logic, simply subclass the `UBF_TraceBehaviour` class and override the `Execute` function. Any properties you define within this class will appear in the Buildable Definition, allowing you to modify them for each specific buildable.

## Functions

* `Execute()`\
  This is where you create your logic for how you want the placement trace to behave.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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://hiveminddocs.gitbook.io/hivemind/code-systems/ultimate-building-system-framework-ubs/proxy-behaviour/trace-behaviour.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.
