UE4_LineTrace为首的射线检测关于HitResult的Location和ImpactPoint的区别

对于LineTraceByChanel 为首的直线检测,Location和ImpactPoint 是没有区别的。
以下是测试代码:
在这里插入图片描述

LinetraceByChanel 的impactLocation 和Location 是一样的
在这里插入图片描述

但是对于SpereTraceByChanel是有区别的,效果如下:
ImpactLocation:
在这里插入图片描述
在这里插入图片描述

location:
在这里插入图片描述

同理,对于其他形状的检测应该也是如此吧。尝试的机会留给看本博的其他人吧。

猜你喜欢

转载自blog.csdn.net/longyanbuhui/article/details/85244629