docs: expand gameobject helper docs

This commit is contained in:
2026-04-03 16:11:48 +08:00
parent ee44e14960
commit 2c2e1fab1c
34 changed files with 597 additions and 603 deletions

View File

@@ -1,30 +1,23 @@
# GameObject::FixedUpdate
公开方法,详见头文件声明
向当前对象及其子树分发固定步长 `FixedUpdate()`
```cpp
void FixedUpdate();
```
该方法声明于 `XCEngine/Components/GameObject.h`,当前页面用于固定 `GameObject` 类目录下的方法级 canonical 路径。
## 行为说明
**参数:** 无。
当前实现会:
**返回:** `void` - 无返回值。
- 若对象不处于 `active in hierarchy`,直接返回
- 对所有已启用普通组件调用 `FixedUpdate()`
- 递归对子对象调用 `FixedUpdate()`
**示例:**
```cpp
#include <XCEngine/Components/GameObject.h>
void Example() {
XCEngine::Components::GameObject object;
// 根据上下文补齐参数后调用 GameObject::FixedUpdate(...)。
(void)object;
}
```
它本身不接收 fixed delta 参数;固定步长配置由更上层运行时或场景驱动决定。
## 相关文档
- [返回类总览](GameObject.md)
- [返回模块目录](../Components.md)
- [Update](Update.md)
- [LateUpdate](LateUpdate.md)
- [Scene::FixedUpdate](../../Scene/Scene/FixedUpdate.md)