载入中...
搜索中...
未找到
TerrainLoadGravity.h
浏览该文件的文档.
23 friend EVENGINE_API_WORLD Result<void> beginTerrainLoadGravity(TerrainLoadGravityState*, Body3D*, bool);
24 friend EVENGINE_API_WORLD Result<bool> advanceTerrainLoadGravity(TerrainLoadGravityState*, Body3D*, bool, float,
42[[nodiscard]] EVENGINE_API_WORLD Result<void> beginTerrainLoadGravity(TerrainLoadGravityState* state, Body3D* body,
56[[nodiscard]] EVENGINE_API_WORLD Result<bool> advanceTerrainLoadGravity(TerrainLoadGravityState* state, Body3D* body,
Move-only, checked operation results for the common layer.
3D rigid body (Box3D) in meter-space coordinates (+Y up by convention). Owned by a World3D; create pr...
Definition Body3D.h:24
Caller-owned state for Pcg-style rigid-body activation after terrain loading.
Definition TerrainLoadGravity.h:11
bool isCompleted() const
Whether gravity restoration and the activation notification completed.
Definition TerrainLoadGravity.h:18
friend EVENGINE_API_WORLD Result< void > beginTerrainLoadGravity(TerrainLoadGravityState *, Body3D *, bool)
Begin monitoring a body when a containing terrain scene exists.
Definition TerrainLoadGravity.cpp:10
bool isMonitoring() const
Whether a containing terrain was found and activation is being monitored.
Definition TerrainLoadGravity.h:14
bool isActivationScheduled() const
Whether the post-load delay has been scheduled.
Definition TerrainLoadGravity.h:16
float getDelayElapsed() const
Elapsed seconds since the first loaded observation.
Definition TerrainLoadGravity.h:20
friend EVENGINE_API_WORLD Result< bool > advanceTerrainLoadGravity(TerrainLoadGravityState *, Body3D *, bool, float, float)
Advance terrain-load waiting and restore gravity after the configured delay.
Definition TerrainLoadGravity.cpp:28
Result< void > beginTerrainLoadGravity(TerrainLoadGravityState *state, Body3D *body, bool terrainFound)
Begin monitoring a body when a containing terrain scene exists.
Definition TerrainLoadGravity.cpp:10
Result< bool > advanceTerrainLoadGravity(TerrainLoadGravityState *state, Body3D *body, bool terrainLoaded, float deltaSeconds, float activationDelay)
Advance terrain-load waiting and restore gravity after the configured delay.
Definition TerrainLoadGravity.cpp:28