[UE4]计算2点坐标附近的坐标:线性插值法

float distance = FVector::Distance(SelfLocation, TargetLocation);
float  p = 300.f / distance;
DrawDebugPoint(GetWorld(), FMath::Lerp(SelfLocation,TargetLocation,p),20,FColor::Red,false,0.03);

 

posted on 2018-04-21 11:03  一粒沙  阅读(1401)  评论(0编辑  收藏  举报