653 B
653 B
TransformComponent::Rotate
命名空间: XCEngine::Components
类型: method
头文件: XCEngine/Components/TransformComponent.h
签名
void Rotate(const Math::Vector3& eulers, Space relativeTo = Space::Self);
void Rotate(const Math::Vector3& axis, float angle, Space relativeTo = Space::Self);
作用
执行 FromEulerAngles、SetRotation、GetRotation 协同流程。
当前实现
- 当前实现会调用
FromEulerAngles、SetRotation、GetRotation。 - 当前实现会调用
FromAxisAngle、SetRotation、GetRotation。