Files
XCEngine/docs/api/XCEngine/Components/GameObject/FixedUpdate.md

24 lines
550 B
Markdown
Raw Normal View History

2026-03-26 16:45:24 +08:00
# GameObject::FixedUpdate
2026-04-03 16:11:48 +08:00
向当前对象及其子树分发固定步长 `FixedUpdate()`
2026-03-26 16:45:24 +08:00
```cpp
void FixedUpdate();
```
2026-04-03 16:11:48 +08:00
## 行为说明
2026-03-26 16:45:24 +08:00
2026-04-03 16:11:48 +08:00
当前实现会:
2026-03-26 16:45:24 +08:00
2026-04-03 16:11:48 +08:00
- 若对象不处于 `active in hierarchy`,直接返回
- 对所有已启用普通组件调用 `FixedUpdate()`
- 递归对子对象调用 `FixedUpdate()`
2026-03-26 16:45:24 +08:00
2026-04-03 16:11:48 +08:00
它本身不接收 fixed delta 参数;固定步长配置由更上层运行时或场景驱动决定。
2026-03-26 16:45:24 +08:00
## 相关文档
2026-04-03 16:11:48 +08:00
- [Update](Update.md)
- [LateUpdate](LateUpdate.md)
- [Scene::FixedUpdate](../../Scene/Scene/FixedUpdate.md)