Search Unity

why isn't my game object moving up and down?

Discussion in 'Scripting' started by isanvel, Jul 28, 2019.

  1. isanvel

    isanvel

    Joined:
    Mar 21, 2019
    Posts:
    41
    is there something i'm missing?

     
  2. ThySpektre

    ThySpektre

    Joined:
    Mar 15, 2016
    Posts:
    362
    Code tags and code pasted into the forum is easier to read than screenshots.

    Assuming your object starts at rest, body.velocity.y is 0, and thus the new vector you are calculating is 0.0, 0.0