- Home /
Move position with smoothing
I am trying to move 3 lanes of log towards the player to look he is going forward (I am making an infinite runner) with for loop and decrementing their z position by 2 but it plays so fast then I multiplied that by time.deltatime and still it is moving but as like the game is running on 8 or 10 FPS My Code: if (_isStarted) {
//Animating the wood to look as player is going forward
for (int i = 0; i < Wood.Length; i++)
{
Wood[i].transform.position -= new Vector3(0f,0f,2f) * Time.deltaTime;
}
}
Comment