载入中...
搜索中...
未找到
DeformPlayback.h
浏览该文件的文档.
1#pragma once
5namespace eve::physics {
12public:
17 [[nodiscard]] static Result<DeformPlayback> prepare(DeformTrack track);
18 DeformPlayback(DeformPlayback&&) noexcept = default;
19 DeformPlayback& operator=(DeformPlayback&&) noexcept = default;
21 DeformPlayback& operator=(const DeformPlayback&) = 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;
33 [[nodiscard]] Result<void> setPlacement(BakeRigidPlacement placement);
35 [[nodiscard]] BakeRigidPlacement placement() const noexcept;
37 [[nodiscard]] double time() const noexcept;
39 [[nodiscard]] double rate() const noexcept;
41 [[nodiscard]] bool paused() const noexcept;
43 [[nodiscard]] DeformTrack track() const;
49 [[nodiscard]] Result<void> sample(std::span<DeformPoint> output);
50
51private:
52 DeformPlayback(DeformTrack track, std::vector<DeformPoint> scratch);
53 DeformTrack track_;
54 std::vector<DeformPoint> scratch_;
55 BakePlaybackClock clock_;
56 BakeRigidTransform transform_;
57};
58} // 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 deformation clip. @ownership Owns reusable sc...
DeformPlayback(DeformPlayback &&) noexcept=default
Immutable fixed-topology deformation clip, independent of simulation and rendering providers....
Definition DeformTrack.h:25
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 position in the explicit coordinates recorded by the recipe.
Definition DeformTrack.h:11