FTransform USplineComponent::GetTransformAtTime(float Time, ESplineCoordinateSpace::Type CoordinateSpace, bool bUseConstantVelocity, bool bUseScale) const
{
if (Duration == 0.0f)
{
return FTransform::Identity;
}
if (bUseConstantVelocity)
{
return GetTransformAtDistanceAlongSpline(Time / Duration * GetSplineLength(), CoordinateSpace, bUseScale);
}
else
{
const int32 NumPoints = SplineCurves.Position.Points.Num();
const int32 NumSegments = bClosedLoop ? NumPoints : NumPoints - 1;
const float TimeMultiplier = NumSegments / Duration;
return GetTransformAtSplineInputKey(Time * TimeMultiplier, CoordinateSpace, bUseScale);
}
}
UE5 USplineComponent
原创fengyuzaitu 博主文章分类:图像处理 ©著作权
文章标签 UE5 USplineComponent 文章分类 游戏开发
-
Vue3集成UE5像素流
Vue3集成UE5像素流
vue3 ue5 -
UE5 SetWorldTransform
UE5 SetWorldTransform
UE5 SetWorldTransfor -
UE5 SetViewTarget
UE5 SetViewTarget
UE5 SetViewTarget -
UE5 ReceiveShutdown
UE5 ReceiveShutdown
UE5 ReceiveShutdown -
UE5 DataAsset
UE5 DataAsset
UE5 DataAsset