载入中...
搜索中...
未找到
WorldSphereSweep.cpp
浏览该文件的文档.
15 Sweep(PhysicsWorldHandle world, std::uint64_t epoch, PhysicsBodyHandle ignored, WorldSphereSweepSettings settings)
17 Result<std::vector<WorldSphereContact>> query(double x, double y, double z, double endX, double endY,
22 DiagnosticCode::NotFound, "Bound World3D was destroyed or restored; rebind the sweep", "world"));
53 if (!parse(first, packed) || !parse(second, epoch) || !std::isfinite(settings.radius) || settings.radius <= 0 ||
Stable, structured diagnostics shared by engine modules.
static Diagnostic error(DiagnosticCode code, std::string message, std::string path={})
Construct an error diagnostic with the standard error severity.
Definition Diagnostic.cpp:21
Optional binding capability; physics owns the factory for process lifetime.
Definition WorldSphereSweep.h:52
static constexpr RuntimeHandle fromPacked(std::uint64_t value) noexcept
Reconstructs a handle from an explicit packed boundary value.
Definition RuntimeHandle.h:190
static constexpr RuntimeHandle invalid() noexcept
Returns the canonical invalid handle.
Definition RuntimeHandle.h:143
PhysicsWorldHandle runtimeHandle() const noexcept
Process-local identity used by PhysicsLink; invalid after destruction.
Definition World3D.h:136
std::string queryToken() const
Opaque process-local query token; re-fetch after restore, never persist in save data.
Definition WorldSphereSweep.cpp:79
static World3D * findWorld(PhysicsWorldHandle handle) noexcept
Resolve a live process-local world handle, or null after teardown. @thread Owning physics thread only...
Definition World3D.cpp:296
std::uint64_t queryEpoch() const noexcept
Monotonic query binding revision; successful restore invalidates prior sessions.
Definition World3D.h:645
IWorldSphereSweepFactory & worldSphereSweepFactory()
Borrow the process-owned optional sweep factory on the simulation thread.
Definition WorldSphereSweep.cpp:75
eve::RuntimeHandle< PhysicsWorldHandleTag > PhysicsWorldHandle
Generation-qualified runtime identity for a physics world.
Definition PhysicsHandles.h:26
eve::RuntimeHandle< PhysicsBodyHandleTag > PhysicsBodyHandle
Generation-qualified runtime identity for a physics body.
Definition PhysicsHandles.h:28
@ InvalidArgument
@ NotFound