Smooth camera movement

I have trigger boxes that change the position of my camera… They literally work on overlap actor events.

How do I make the camera change from one position to another smoothly?

I currently am just setting:


player->CameraBoom->TargetArmLength = NewTargetArmLength;
player->CameraBoom->SocketOffset = NewSocketOffset;

and it’s obviously flicking to it’s new location.

I also tried MoveComponent but that does not seem to be working as intended:


player->CameraBoom->MoveComponent(MoveToLocation, player->CameraBoom->RelativeRotation, NULL);

I don’t have any actual code to give you but you’re going to have to do something similar to a LERP or trigger a matinee with a custom point.

There may be a way to move an element with easing though.

This might help you out.
https://www.unrealengine.com/blog/the-subtle-magic-of-interpto

Thanks you two… Going to have a go at it now.