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

28 lines
562 B
Markdown

# TransformComponent::LookAt
**命名空间**: `XCEngine::Components`
**类型**: `method`
**头文件**: `XCEngine/Components/TransformComponent.h`
## 签名
```cpp
void LookAt(const Math::Vector3& target);
void LookAt(const Math::Vector3& target, const Math::Vector3& up);
```
## 作用
执行 `LookAt``Up` 协同流程。
## 当前实现
- 当前实现会调用 `LookAt``Up`
- 当前实现会调用 `Normalize``GetPosition``Magnitude``SetRotation``LookRotation`
## 相关文档
- [TransformComponent](TransformComponent.md)