IMeleePoseSource that samples CombatCharacterRuntime position and yaw. 更多...
#include <CombatCharacterPose.h>
Public 成员函数 | |
| CombatCharacterPoseSource (const CombatCharacterRuntime &characters, double chestHeight=1.0) noexcept | |
| Borrow a character runtime that must outlive this adapter. | |
| Result< MeleePose > | pose (SubjectRef subject, std::string_view hitboxId) const override |
| Resolve the current world pose for one subject's active hitbox. | |
Public 成员函数 继承自 eve::combat::IMeleePoseSource | |
| virtual | ~IMeleePoseSource ()=default |
| Releases IMeleePoseSource resources. | |
详细描述
IMeleePoseSource that samples CombatCharacterRuntime position and yaw.
Hitbox local offsets stay in the melee catalog (local +Z is facing). This adapter only supplies the character origin plus a chest-height lift so sphere/capsule tests sit on the body.
在文件 CombatCharacterPose.h 第 18 行定义.
构造及析构函数说明
◆ CombatCharacterPoseSource()
|
inlineexplicitnoexcept |
Borrow a character runtime that must outlive this adapter.
Characters.
在文件 CombatCharacterPose.h 第 21 行定义.
成员函数说明
◆ pose()
|
overridevirtual |
Resolve the current world pose for one subject's active hitbox.
- 参数
-
subject Attacking subject. hitboxId Timeline resource id (e.g. weapon.main).
Pose.
实现了 eve::combat::IMeleePoseSource.
在文件 CombatCharacterPose.cpp 第 7 行定义.
引用了 eve::Diagnostic::error(), eve::Result< T >::failure(), eve::NotFound, pose, state, eve::combat::CombatCharacterRuntime::state(), subject , 以及 eve::Result< T >::success().
该类的文档由以下文件生成:
- src/modules/combat/CombatCharacterPose.h
- src/modules/combat/CombatCharacterPose.cpp
Public 成员函数 继承自