载入中...
搜索中...
未找到
BakeRigidTransform.h
浏览该文件的文档.
1#pragma once
2#include "common/Export.h"
3#include "common/Result.h"
4namespace eve::physics {
5struct RigidTrackPose;
8 float x = 0, y = 0, z = 0;
9 float rotationX = 0, rotationY = 0, rotationZ = 0, rotationW = 1;
10};
16public:
18 [[nodiscard]] Result<void> set(BakeRigidPlacement placement);
20 [[nodiscard]] BakeRigidPlacement placement() const noexcept;
24 [[nodiscard]] Result<RigidTrackPose> apply(RigidTrackPose pose) const;
25
26private:
27 BakeRigidPlacement placement_;
28};
29} // namespace eve::physics
eve::EntitySpatialPose pose
#define EVENGINE_API_BACKENDS
Definition Export.h:108
Placement placement
Move-only, checked operation results for the common layer.
Move-only operation result carrying either a value or Status.
Definition Result.h:176
Value-owned validated rigid placement shared by baked pose consumers. @ownership Owns a normalized pl...
Optional physics backend for vehicle mobility and body attach.
Definition Climbing.h:36
Rotation about the baked origin followed by translation, in the track's explicit units; no scaling.
Owning pose; XYZW quaternion, pixels or metres selected by the track. Planar poses require z=qx=qy=0.