engine
 
载入中...
搜索中...
未找到
Public 成员函数 | Public 属性 | 静态 Public 属性 | 所有成员列表
FPointDamageEvent结构体 参考

Damage subclass that handles damage with a single impact location and source direction 更多...

#include <EngineTypes.h>

+ 类 FPointDamageEvent 继承关系图:

Public 成员函数

virtual void GetBestHitInfo (AActor const *HitActor, AActor const *HitInstigator, struct FHitResult &OutHitInfo, FVector &OutImpulseDir) const override
 Simple API for common cases where we are happy to assume a single hit is expected, even though damage event may have multiple hits.
 
- Public 成员函数 继承自 FDamageEvent
 FDamageEvent ()
 Default constructor (no initialization).
 
virtual void GetBestHitInfo (AActor const *HitActor, AActor const *HitInstigator, struct FHitResult &OutHitInfo, FVector &OutImpulseDir) const
 This is for compatibility with old-style functions which want a unified set of hit data regardless of type of hit. 更多...
 

Public 属性

float Damage
 Actual damage done
 
struct FHitResult HitInfo
 Describes the trace/location that caused this damage
 
FVector_NetQuantizeNormal ShotDirection
 Direction the shot came from. 更多...
 
- Public 属性 继承自 FDamageEvent
TSubclassOf< class UDamageType > DamageTypeClass
 Optional DamageType for this event. 更多...
 

静态 Public 属性

static const int32 ClassID = 1
 ID for this class. 更多...
 
- 静态 Public 属性 继承自 FDamageEvent
static const int32 ClassID = 0
 ID for this class. 更多...
 

详细描述

Damage subclass that handles damage with a single impact location and source direction

类成员变量说明

◆ ClassID

const int32 FPointDamageEvent::ClassID = 1
static

ID for this class.

NOTE this must be unique for all damage events.

◆ ShotDirection

FVector_NetQuantizeNormal FPointDamageEvent::ShotDirection

Direction the shot came from.

Should be normalized.


该结构体的文档由以下文件生成: