Files
XCEngine/docs/api/XCEngine/Components/TransformComponent/SetLocalRotation.md

28 lines
477 B
Markdown

# TransformComponent::SetLocalRotation
**命名空间**: `XCEngine::Components`
**类型**: `method`
**头文件**: `XCEngine/Components/TransformComponent.h`
## 签名
```cpp
void SetLocalRotation(const Math::Quaternion& rotation);
```
## 作用
更新 `m_localRotation`
## 当前实现
- 会更新 `m_localRotation`
- 当前实现会调用 `SetDirty`
## 相关文档
- [TransformComponent](TransformComponent.md)
- [GetLocalRotation](GetLocalRotation.md)