Home Unreal Engine

UDK "X" movement from "X" 100 to 200

ColdWave
polycounter lvl 9
Offline / Send Message
ColdWave polycounter lvl 9
Hi, I've tried with VInterpTo and FInterpTo and the result is the same as Move() function or maybe even worse. I've captured a video clip [ame]http://www.youtube.com/watch?v=4k8mtRXVAJo[/ame] . This is the source code I'm using:
Because VInterpTo and FInterpTo are with ease I've made it with FInterpConstantTo

local vector StartLocation;
local float MoveObj;
StartLocation = GetTargetLocation();

MoveObj=FInterpConstantTo(StartLocation.x, EndLocation.x, delta, MovementSpeed);
StartLocation.x = MoveObj;
SetLocation(StartLocation);
if (StartLocation==EndLocation)
{
stopMove();
}
I've put this in the event Tick() function but it's very laggy. After that I've tried to use SetTimer() function with interval of 0.0161 sec or with the value of the DeltaTime. But the result is the same...
Any Ideas how to move the object without this jumping ?? I need the movement to be smooth...

Replies

Sign In or Register to comment.