载入中...
搜索中...
未找到
WorldHitProbe.cpp
浏览该文件的文档.
9WorldHitProbe::WorldHitProbe(std::unique_ptr<IWorldSphereSweep> sweep) : sweep_(std::move(sweep)) {}
10WorldHitProbe::WorldHitProbe(std::unique_ptr<IWorldSphereSweep> sweep, std::unique_ptr<IWorldHitTargetMapper> mapper)
13Result<std::vector<ICarrierHitProbe::Contact>> WorldHitProbe::query(CarrierHandle, const CarrierMotion& previous,
17 return Output::failure(Diagnostic::error(DiagnosticCode::Unsupported, "No world sweep session", "worldSweep"));
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
WorldHitProbe(std::unique_ptr< IWorldSphereSweep > sweep)
Take ownership of an optional query session; no entity mapping is installed.
Definition WorldHitProbe.cpp:9
Result< std::vector< Contact > > query(CarrierHandle handle, const CarrierMotion &previous, const CarrierMotion ¤t) const override
Project physical contacts without applying damage or forces. @cost One sweep per proposed segment plu...
Definition WorldHitProbe.cpp:13
载具模块入口(eve.Vehicle):定义注册 / 实体工厂 / RTS 命令 / 帧调度。 设计文档:docs/dev/通用载具系统设计.md
Definition RTSArchetype.h:10
@ InvalidArgument
@ Unsupported
@ Failed
Definition Container.h:602
Generation-qualified reference to one pooled carrier slot.
Definition CombatCarrier.h:166
Owning contact reported between previous and current motion.
Definition CombatCarrier.h:313
ecs::EntityHandle target
Definition CombatCarrier.h:314
std::optional< eve::WorldSphereContact > worldContact
Optional physics provenance; target stays empty unless a gameplay adapter maps it.
Definition CombatCarrier.h:323
std::optional< double > fraction
Canonical normalized impact time in [0,1] along this swept segment. Legacy probes may omit it: compat...
Definition CombatCarrier.h:321