# Changing the grass density center

When working with a top-down perspective, it's often preferable to move the center of the grass density somewhere other than the camera. Since version `2.10.0` it's possible to do that by adding the `Grass Density Center Override` component to the object you want as the new center. The script automatically sets the required shader keywords and updates the density center to the transform's position in `LateUpdate`.

If you want to switch between camera-based and object-based density centers, you can disable or remove the component.&#x20;

{% hint style="warning" %}
Make sure that only one Grass Density Center Override is active at a time. If more than one is active during the components `OnEnable` event, the second component will be ignored and won't function until you disable and re-enable it again.
{% endhint %}


---

# 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.stixgames.com/advanced-features/changing-the-grass-density-center.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.
