载入中...
搜索中...
未找到
eve::combat::CombatCharacterPoseSource类 参考final

IMeleePoseSource that samples CombatCharacterRuntime position and yaw. 更多...

#include <CombatCharacterPose.h>

类 eve::combat::CombatCharacterPoseSource 继承关系图:
eve::combat::IMeleePoseSource

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()

eve::combat::CombatCharacterPoseSource::CombatCharacterPoseSource ( const CombatCharacterRuntime &  characters,
double  chestHeight = 1.0 
)
inlineexplicitnoexcept

Borrow a character runtime that must outlive this adapter.

Characters.

在文件 CombatCharacterPose.h 第 21 行定义.

成员函数说明

◆ pose()

Result< MeleePose > eve::combat::CombatCharacterPoseSource::pose ( SubjectRef  subject,
std::string_view  hitboxId 
) const
overridevirtual

Resolve the current world pose for one subject's active hitbox.

参数
subjectAttacking subject.
hitboxIdTimeline 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().


该类的文档由以下文件生成: