> For the complete documentation index, see [llms.txt](https://wiki.redmodding.org/cyberpunk-2077-modding/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wiki.redmodding.org/cyberpunk-2077-modding/modding-guides/everything-else/how-to-change-position-and-rotation-of-an-entmeshcomponent.md).

# How to Change Position and Rotation of an entMeshComponent

## Summary:

We will guide you through the step-by-step process that will allow you to rotate and position differently the **duvet** above V's bed, so that it flows with how the sleep animation plays out.

## Requirements:

* [CP77Tools](https://github.com/WolvenKit/CP77Tools/releases).
* [Cyberpunk Save Editor (CPSE) v0.5.5-dev](https://github.com/PixelRick/CyberpunkSaveEditor/releases/tag/v0.5.5-dev).
* Some basic knowledge about modding Cyberpunk 2077.

## The Steps:

\
**1**. Unbundle and uncook **basegame\_3\_nightcity.archive, basegame\_4\_gamedata.archive.**\
**2**. Find the entity you want to modify (in our case it's located here "**basegame\_3\_nightcity\base\quest\minor\_quests\mq000\entities"**)\
**3**. Once you have the entity open its buffer in the **Cyberpunk Save Editor** by dragging and dropping it inside.\
**4**. Open the **entMeshComponent** that has the **same name** as the **mesh** you want to modify (in our case is **3 entMeshComponent "*****bed\_duvet\_poor*****"**).\
**5**. Open the **localTrasnform array**, and inside of it **Position and Orientation**; you're going to see different values.\
**IMPORTANT NOTE**: **ijkr** are to be read as **xyzw**, \*\*\*\* where **z** is front/backward, **x** is left/right, **y** up/down.\
**6**. Edit those values accordingly to how you want the **entMeshComponent** to appear in game (*this is where experimenting is encouraged until you get the result you want* )\
**IMPORTANT**: For a better understanding of how your changes may affect the ingame position and rotation use this [**website**](https://quaternions.online/) (kindly provided by **Loomy**)\
**7**. **Repack, Build** and put into the **Mod** folder

![](/files/67YVsQXqrK8FJdg9fniB)


---

# 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://wiki.redmodding.org/cyberpunk-2077-modding/modding-guides/everything-else/how-to-change-position-and-rotation-of-an-entmeshcomponent.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.
