docs: sync api and planning docs

This commit is contained in:
2026-04-08 16:07:03 +08:00
parent 08c3278e10
commit 31756847ab
1826 changed files with 44502 additions and 29645 deletions

View File

@@ -1,31 +1,27 @@
# TransformComponent::SetLocalRotation
设置相关状态或配置。
**命名空间**: `XCEngine::Components`
**类型**: `method`
**头文件**: `XCEngine/Components/TransformComponent.h`
## 签名
```cpp
void SetLocalRotation(const Math::Quaternion& rotation);
```
该方法声明于 `XCEngine/Components/TransformComponent.h`,当前页面用于固定 `TransformComponent` 类目录下的方法级 canonical 路径。
## 作用
**参数:**
- `rotation` - 参数语义详见头文件声明。
更新 `m_localRotation`
**返回:** `void` - 无返回值。
## 当前实现
**示例:**
```cpp
#include <XCEngine/Components/TransformComponent.h>
void Example() {
XCEngine::Components::TransformComponent object;
// 根据上下文补齐参数后调用 TransformComponent::SetLocalRotation(...)。
(void)object;
}
```
- 会更新 `m_localRotation`
- 当前实现会调用 `SetDirty`
## 相关文档
- [返回类总览](TransformComponent.md)
- [返回模块目录](../Components.md)
- [TransformComponent](TransformComponent.md)
- [GetLocalRotation](GetLocalRotation.md)