Download

Smoothly move skeletal mesh from A to B

Sorry for noob question guys,

How do I smoothly move my skeletal mesh in some direction with some nice ease over time? I tried using FMath::VInterpTo in a Tick function but it still snaps to that new position the moment it is called:

InitialMeshRelativeLocation - is my current skeletal mesh’s location (FVector)


GetMesh()->SetRelativeLocation(InitialMeshRelativeLocation + FMath::VInterpTo(InitialMeshRelativeLocation, FVector(0, 0, 50), DeltaTime, 15));

Can you please help?

What about add a movement component?