Search Unity

Moving platform smooth unles I am standing on it then jerky

Discussion in 'Scripting' started by ChosenZeus, Jun 8, 2014.

  1. ChosenZeus

    ChosenZeus

    Joined:
    May 1, 2014
    Posts:
    18
    Anyway to avoid this?

    Using simple script to move a box:

    #pragma strict
    function Start () {
    }
    function Update () {
    transform.Translate(Vector3.back * .02);
    }

    Box moves nice and smooth unless I am standing on it then is has a jitter that just looks terrible.

    Thanks!

    CZ
     
  2. emiller100

    emiller100

    Joined:
    Jul 17, 2010
    Posts:
    39
    When on the platform make the platform the parent of the player using transform.parent.