Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

Constant movement in a side-scroller

Discussion in 'Physics for ECS' started by Srokaaa, Jun 9, 2020.

  1. Srokaaa


    Sep 18, 2018
    Hey, I am making a "infinite runner" type of a game. In those type of games usually player entity is staying on a single plane/line and world movement is simulated by world moving around player in a single direction. How would I go about properly simulating physics in such case?
    I tried to fake it with friction between ground and all dynamic entities but it seems even with friction set to 1 objects do not match their velocities eventually as can be seen on a video below:

    Is there any way to move every dynamic object in given direction by some increment every frame?