载入中...
搜索中...
未找到
BakedParticlePlayback.h
浏览该文件的文档.
1#pragma once
5namespace eve::physics {
12public:
17 [[nodiscard]] static Result<BakedParticlePlayback> prepare(ParticleTrack track);
19 BakedParticlePlayback& operator=(BakedParticlePlayback&&) noexcept = default;
21 BakedParticlePlayback& operator=(const BakedParticlePlayback&) = delete;
23 [[nodiscard]] Result<void> advance(double seconds);
25 [[nodiscard]] Result<void> seek(double seconds);
27 [[nodiscard]] Result<void> setRate(double rate);
29 [[nodiscard]] Result<void> setWrap(BakePlaybackWrap wrap);
31 void setPaused(bool paused) noexcept;
34 [[nodiscard]] Result<void> setPlacement(BakeRigidPlacement placement);
36 [[nodiscard]] BakeRigidPlacement placement() const noexcept;
38 [[nodiscard]] double time() const noexcept;
40 [[nodiscard]] double rate() const noexcept;
42 [[nodiscard]] bool paused() const noexcept;
44 [[nodiscard]] ParticleTrack track() const;
50 [[nodiscard]] Result<std::size_t> sample(std::span<BakedParticleSample> output);
51
52private:
54 ParticleTrack track_;
55 std::vector<BakedParticleSample> scratch_;
56 BakePlaybackClock clock_;
57 BakeRigidTransform transform_;
58};
59} // namespace eve::physics
std::string output
#define EVENGINE_API_BACKENDS
Definition Export.h:108
Placement placement
Move-only operation result carrying either a value or Status.
Definition Result.h:176
Value-owned playback time state shared by baked channel implementations. @ownership Owns time/rate/pa...
Value-owned validated rigid placement shared by baked pose consumers. @ownership Owns a normalized pl...
Independent clock and placement over a shared immutable particle clip. @ownership Owns reusable scrat...
BakedParticlePlayback(BakedParticlePlayback &&) noexcept=default
Immutable particle trajectories independent of live simulation, ECS and graphics resources....
Optional physics backend for vehicle mobility and body attach.
Definition Climbing.h:36
BakePlaybackWrap
Endpoint policy: advances clamp or wrap; explicit seeks always clamp inclusively.
Rotation about the baked origin followed by translation, in the track's explicit units; no scaling.
Owning visible sample retaining the two-part stable identity.