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

28 lines
485 B
Markdown

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