载入中...
搜索中...
未找到
eve::physics::TerrainLoadGravityState类 参考

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()

float eve::physics::TerrainLoadGravityState::getDelayElapsed ( ) const
inline

Elapsed seconds since the first loaded observation.

在文件 TerrainLoadGravity.h 第 20 行定义.

◆ isActivationScheduled()

bool eve::physics::TerrainLoadGravityState::isActivationScheduled ( ) const
inline

Whether the post-load delay has been scheduled.

在文件 TerrainLoadGravity.h 第 16 行定义.

◆ isCompleted()

bool eve::physics::TerrainLoadGravityState::isCompleted ( ) const
inline

Whether gravity restoration and the activation notification completed.

在文件 TerrainLoadGravity.h 第 18 行定义.

◆ isMonitoring()

bool eve::physics::TerrainLoadGravityState::isMonitoring ( ) const
inline

Whether a containing terrain was found and activation is being monitored.

在文件 TerrainLoadGravity.h 第 14 行定义.

友元及相关函数文档

◆ advanceTerrainLoadGravity

EVENGINE_API_WORLD Result< bool > advanceTerrainLoadGravity ( TerrainLoadGravityState *  ,
Body3D *  ,
bool  ,
float  ,
float   
)
friend

Advance terrain-load waiting and restore gravity after the configured delay.

参数
stateState initialized by beginTerrainLoadGravity.
bodyThe same live caller-owned body supplied at begin.
terrainLoadedCurrent regular terrain load state.
deltaSecondsInjected finite non-negative frame duration.
activationDelayFinite 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

EVENGINE_API_WORLD Result< void > beginTerrainLoadGravity ( TerrainLoadGravityState *  ,
Body3D *  ,
bool   
)
friend

Begin monitoring a body when a containing terrain scene exists.

参数
stateRequired caller-owned state, initialized exactly once.
bodyRequired caller-owned dynamic body.
terrainFoundWhether 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 行定义.


该类的文档由以下文件生成: