载入中...
搜索中...
未找到
CameraObstruction.h
浏览该文件的文档.
1#pragma once
2
3#include "common/Export.h"
4
5#include <cstdint>
6
7namespace eve {
8
11 bool hit = false;
12 int bodyId = -1;
13 float fraction = 1.f;
14 float x = 0.f, y = 0.f, z = 0.f;
15 float normalX = 0.f, normalY = 0.f, normalZ = 0.f;
16};
17
20public:
21 static constexpr const char* capabilityName = "eve.camera.ICameraObstructionQuery";
23 virtual ~ICameraObstructionQuery() = default;
24
26 virtual bool sphereCast(float fromX, float fromY, float fromZ, float toX, float toY,
27 float toZ, float radius, uint64_t maskBits, int ignoredBodyId,
28 CameraObstructionHit* out) = 0;
29};
30
31} // namespace eve
float y
Definition AnimClip.cpp:738
float x
Definition AnimClip.cpp:738
float z
Definition AnimClip.cpp:738
#define EVENGINE_API_FOUNDATION_INLINE
仅供"只有内联成员"的类型使用的组宏:拥有者 dllexport,消费方不导入。
Definition Export.h:170
float radius
bool hit
Cross-module query used by camera without linking against physics.
virtual bool sphereCast(float fromX, float fromY, float fromZ, float toX, float toY, float toZ, float radius, uint64_t maskBits, int ignoredBodyId, CameraObstructionHit *out)=0
Sphere cast.
virtual ~ICameraObstructionQuery()=default
I camera obstruction query.
Build metadata (engine git commit, build time, third-party version).
Definition Build.cpp:16
Closest hit returned by the optional camera-obstruction provider.