载入中...
搜索中...
未找到
eve::stylize::ProjectileTrailEffect类 参考

Time-resampled world-space trail for projectiles and dash effects. 更多...

#include <MotionEchoEffect.h>

Public 成员函数

 ProjectileTrailEffect (ProjectileTrailConfig config={})
 Construct with sanitized positive timing/capacity limits.
 
void reset () noexcept
 Clear samples and timing state.
 
MotionEchoAdvanceReport update (float deltaSeconds, const glm::vec3 &currentPosition)
 Advance time and resample movement up to the current world position.
 
TrailMeshSnapshot build (const glm::vec3 &cameraForward) const
 Build a camera-facing ribbon ordered from oldest tail to newest head.
 
std::size_t size () const noexcept
 Return retained sample count.
 

详细描述

Time-resampled world-space trail for projectiles and dash effects.

The trail owns positions and ages. update() interpolates missed samples for high-speed movement and performs deferred expiration after aging all points.

在文件 MotionEchoEffect.h 第 41 行定义.

构造及析构函数说明

◆ ProjectileTrailEffect()

成员函数说明

◆ build()

TrailMeshSnapshot eve::stylize::ProjectileTrailEffect::build ( const glm::vec3 &  cameraForward) const

◆ reset()

void eve::stylize::ProjectileTrailEffect::reset ( )
noexcept

Clear samples and timing state.

在文件 MotionEchoEffect.cpp 第 42 行定义.

◆ size()

std::size_t eve::stylize::ProjectileTrailEffect::size ( ) const
inlinenoexcept

Return retained sample count.

在文件 MotionEchoEffect.h 第 62 行定义.

◆ update()

MotionEchoAdvanceReport eve::stylize::ProjectileTrailEffect::update ( float  deltaSeconds,
const glm::vec3 &  currentPosition 
)

Advance time and resample movement up to the current world position.

参数
deltaSecondsNon-negative caller-owned simulation delta.
currentPositionCurrent projectile world position.
返回
Capture, rejection, expiration and live counters.

在文件 MotionEchoEffect.cpp 第 64 行定义.

引用了 eve::stylize::MotionEchoAdvanceReport::alive, count, eve::stylize::MotionEchoAdvanceReport::expired, eve::stylize::ProjectileTrailConfig::sampleIntervalSeconds , 以及 t.


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