Using delta time and SetActorLocation

Okay so I have the below code:


ActorPosition2.X = 3180;
	 ActorPosition2.Y = 0;
	 ActorItr->SetActorLocation(ActorPosition2);

When I try and use delta time with it, it sets the X value to a much lower one (in game):


ActorPosition2.X = 3180;
	 ActorPosition2.Y = 0;
	 ActorItr->SetActorLocation(ActorPosition2 * DeltaTime);

How do I work out what I should be setting the X value to or is there another way for me to do this?

Thanks!

DeltaTime is the amount of seconds since last frame. I don’t exactly understand what you try to achieve here, but if you want to move your actor across world’s X axis with a speed of 31.8 meters per second then you need to use a code like this:



ActorPosition2.X = 3180;
ActorPosition2.Y = 0;

ActorItr->SetActorLocation(ActorItr->GetActorLocation() + ActorPosition2 * DeltaTime);