与射弹重叠时的空扫描命中结果

Empty Sweep Hit Result On Overlap with projectile

我正在尝试制作一个射弹系统,但是扫描结果是空的。我需要它来查看射弹是否击中骨头 'head' 并查看击中位置。

我确保我在抛射物运动和角色运动上有扫射碰撞。

这是处理 ProjectileDamage 的服务器事件的重叠事件:

https://blueprintue.com/blueprint/v9gzb-uf/

(向上滚动查看 OnComponentBeginOverlap 事件)

实际系统正常,但扫描结果为空

提前致谢

物理学或弹丸运动

如果使用物理或射弹运动组件,请使用 OnComponentHit,而不是 OnComponentBeginOverlap

OnComponentHit

Event called when a component hits (or is hit by) something solid. This could happen due to things like Character movement, using Set Location with 'sweep' enabled, or physics simulation. For events when objects overlap (e.g. walking into a trigger) see the 'Overlap' event.

For collisions during physics simulation to generate hit events, 'Simulation Generates Hit Events' must be enabled for this component.

When receiving a hit from another object's movement, the directions of 'Hit.Normal' and 'Hit.ImpactNormal' will be adjusted to indicate force from the other object against this object.

NormalImpulse will be filled in for physics-simulating bodies, but will be zero for swept-component blocking collisions.

OnComponentBeginOverlap

Event called when something starts to overlaps this component, for example a player walking into a trigger. For events when objects have a blocking collision, for example a player hitting a wall, see 'Hit' events.

弹丸运动

如果使用Projectile Movement Component,您还可以使用OnProjectileStop事件。

验证命中是否影响骨架网格物体

如果您正在撞击骨架网格物体,您只会在命中结果中得到 Bone Name

示例项目

要查看物理影响和射弹运动影响撞击骨架网格物体并返回骨骼名称的示例,see this example project

我现在知道如何解决我的问题了。

我只需要设置对象类型,从角色,从 'Pawn' 到 World Dynamic。现在弹丸也有一个命中结果。