26 lines
510 B
Markdown
26 lines
510 B
Markdown
# TransformComponent::Translate
|
|
|
|
**命名空间**: `XCEngine::Components`
|
|
|
|
**类型**: `method`
|
|
|
|
**头文件**: `XCEngine/Components/TransformComponent.h`
|
|
|
|
## 签名
|
|
|
|
```cpp
|
|
void Translate(const Math::Vector3& translation, Space relativeTo = Space::Self);
|
|
```
|
|
|
|
## 作用
|
|
|
|
执行 `SetPosition`、`GetPosition`、`TransformDirection` 协同流程。
|
|
|
|
## 当前实现
|
|
|
|
- 当前实现会调用 `SetPosition`、`GetPosition`、`TransformDirection`。
|
|
|
|
## 相关文档
|
|
|
|
- [TransformComponent](TransformComponent.md)
|