Continuing where I left off in my other topic, I have a position and rotation tracker and I would like to use it as an input device for the player's rotation and location. As far as rotation is concerned, I have encountered no problems apart from a slight lagging, which disappears entirely when I am using only two dimensions (I can live without "Roll" for this one).
I have set the rotation in the PlayerTick function of the PlayerController class. I am using DLLBind to get the data from the tracker. The data does come in, I can log it and it shows in the log. However, when I use the SetLocation function, the player's location does not change. I have also tried to use the same function in the Pawn class, but to no avail.
Any ideas?
I have set the rotation in the PlayerTick function of the PlayerController class. I am using DLLBind to get the data from the tracker. The data does come in, I can log it and it shows in the log. However, when I use the SetLocation function, the player's location does not change. I have also tried to use the same function in the Pawn class, but to no avail.
Code:
function PlayerTick(float DeltaTime)
{
super.PlayerTick(DeltaTime);
SetRotation(RotateXYZ()); // This works
SetLocation(TranslateXYZ()); // This doesn't
}