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

562 B

TransformComponent::LookAt

命名空间: XCEngine::Components

类型: method

头文件: XCEngine/Components/TransformComponent.h

签名

void LookAt(const Math::Vector3& target);
void LookAt(const Math::Vector3& target, const Math::Vector3& up);

作用

执行 LookAtUp 协同流程。

当前实现

  • 当前实现会调用 LookAtUp
  • 当前实现会调用 NormalizeGetPositionMagnitudeSetRotationLookRotation

相关文档