Caller-owned state for Pcg-style rigid-body activation after terrain loading. 更多...
#include <TerrainLoadGravity.h>
Public 成员函数 | |
| bool | isMonitoring () const |
| Whether a containing terrain was found and activation is being monitored. | |
| bool | isActivationScheduled () const |
| Whether the post-load delay has been scheduled. | |
| bool | isCompleted () const |
| Whether gravity restoration and the activation notification completed. | |
| float | getDelayElapsed () const |
| Elapsed seconds since the first loaded observation. | |
友元 | |
| EVENGINE_API_WORLD Result< void > | beginTerrainLoadGravity (TerrainLoadGravityState *, Body3D *, bool) |
| Begin monitoring a body when a containing terrain scene exists. | |
| EVENGINE_API_WORLD Result< bool > | advanceTerrainLoadGravity (TerrainLoadGravityState *, Body3D *, bool, float, float) |
| Advance terrain-load waiting and restore gravity after the configured delay. | |
详细描述
Caller-owned state for Pcg-style rigid-body activation after terrain loading.
在文件 TerrainLoadGravity.h 第 11 行定义.
成员函数说明
◆ getDelayElapsed()
|
inline |
Elapsed seconds since the first loaded observation.
在文件 TerrainLoadGravity.h 第 20 行定义.
◆ isActivationScheduled()
|
inline |
Whether the post-load delay has been scheduled.
在文件 TerrainLoadGravity.h 第 16 行定义.
◆ isCompleted()
|
inline |
Whether gravity restoration and the activation notification completed.
在文件 TerrainLoadGravity.h 第 18 行定义.
◆ isMonitoring()
|
inline |
Whether a containing terrain was found and activation is being monitored.
在文件 TerrainLoadGravity.h 第 14 行定义.
友元及相关函数文档
◆ advanceTerrainLoadGravity
|
friend |
Advance terrain-load waiting and restore gravity after the configured delay.
- 参数
-
state State initialized by beginTerrainLoadGravity. body The same live caller-owned body supplied at begin. terrainLoaded Current regular terrain load state. deltaSeconds Injected finite non-negative frame duration. activationDelay Finite non-negative delay after the first loaded observation.
- 返回
- True exactly once when gravity is restored and caller-owned components should activate. @ownership State and body remain caller-owned and are not retained. @thread Physics simulation owner thread only; no callbacks are invoked.
在文件 TerrainLoadGravity.cpp 第 28 行定义.
◆ beginTerrainLoadGravity
|
friend |
Begin monitoring a body when a containing terrain scene exists.
- 参数
-
state Required caller-owned state, initialized exactly once. body Required caller-owned dynamic body. terrainFound Whether the caller found a terrain scene containing the body.
- 返回
- Success, or InvalidArgument before mutation. @ownership State and body remain caller-owned and are not retained. @thread Physics simulation owner thread only.
在文件 TerrainLoadGravity.cpp 第 10 行定义.
该类的文档由以下文件生成:
- src/modules/physics/TerrainLoadGravity.h