> 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

Guide made by Forsentio with the help of Loomy, PixelRick and Sombra - Team members working on various projects at RED Modding Tools.

## 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

![](https://1427525421-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4gzcGtLrr90pVjAWVdTc%2Fuploads%2Fgit-blob-314f8f8c70313a4d73d332a9593190ce12e824b0%2Fwkit_wiki_qEd_res_Duvet_result.png?alt=media)


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://wiki.redmodding.org/cyberpunk-2077-modding/modding-guides/everything-else/how-to-change-position-and-rotation-of-an-entmeshcomponent.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
