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 ¤tPosition) |
| 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()
|
explicit |
Construct with sanitized positive timing/capacity limits.
在文件 MotionEchoEffect.cpp 第 23 行定义.
引用了 eve::stylize::ProjectileTrailConfig::maximumSamples, eve::stylize::ProjectileTrailConfig::minimumDistance, eve::stylize::ProjectileTrailConfig::sampleIntervalSeconds, eve::stylize::ProjectileTrailConfig::sampleLifetimeSeconds, eve::stylize::ProjectileTrailConfig::widthHead , 以及 eve::stylize::ProjectileTrailConfig::widthTail.
成员函数说明
◆ build()
| TrailMeshSnapshot eve::stylize::ProjectileTrailEffect::build | ( | const glm::vec3 & | cameraForward | ) | const |
Build a camera-facing ribbon ordered from oldest tail to newest head.
在文件 MotionEchoEffect.cpp 第 103 行定义.
引用了 mesh, previous, eve::stylize::ProjectileTrailConfig::sampleLifetimeSeconds, side, t, tangent, eve::stylize::TrailMeshSnapshot::vertices, view, width, eve::stylize::ProjectileTrailConfig::widthHead , 以及 eve::stylize::ProjectileTrailConfig::widthTail.
◆ reset()
|
noexcept |
Clear samples and timing state.
在文件 MotionEchoEffect.cpp 第 42 行定义.
◆ size()
|
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.
- 参数
-
deltaSeconds Non-negative caller-owned simulation delta. currentPosition Current 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.
该类的文档由以下文件生成:
- src/modules/stylize/MotionEchoEffect.h
- src/modules/stylize/MotionEchoEffect.cpp