载入中...
搜索中...
未找到
CollapsePlayback.h
浏览该文件的文档.
1#pragma once
5
6namespace eve::physics {
21public:
29 [[nodiscard]] static Result<CollapsePlayback> prepare(CollapseAnimation animation);
34 [[nodiscard]] Result<void> advance(double elapsedSeconds);
36 [[nodiscard]] Result<void> seek(double seconds);
38 [[nodiscard]] Result<void> setRate(double rate);
40 void setPaused(bool paused) noexcept;
42 [[nodiscard]] Result<void> setWrap(CollapsePlaybackWrap wrap);
46 [[nodiscard]] Result<void> setPlacement(CollapsePlacement placement);
48 [[nodiscard]] CollapsePlacement placement() const noexcept;
50 [[nodiscard]] double time() const noexcept;
52 [[nodiscard]] double rate() const noexcept;
54 [[nodiscard]] bool paused() const noexcept;
56 [[nodiscard]] Result<BonePresentation> sample(int bone) const;
58 [[nodiscard]] std::shared_ptr<const CollapseAnimation> animation() const noexcept;
59
60private:
61 explicit CollapsePlayback(std::shared_ptr<const CollapseAnimation> animation);
62 std::shared_ptr<const CollapseAnimation> animation_;
63 BakePlaybackClock clock_;
64 BakeRigidTransform transform_;
65};
66} // namespace eve::physics
#define EVENGINE_API_BACKENDS
Definition Export.h:108
std::uint32_t bone
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...
Owning, solver-independent baked rigid-fragment animation within Physics. @ownership Owns all samples...
Independent clock over a frozen, shared collapse animation. @ownership Owns a shared immutable snapsh...
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.