Search Unity

  1. Calling all beginners! Join the FPS Beginners Mods Challenge until December 13.
    Dismiss Notice
  2. It's Cyber Week at the Asset Store!
    Dismiss Notice

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:
    15
    is there something i'm missing?

     
  2. ThySpektre

    ThySpektre

    Joined:
    Mar 15, 2016
    Posts:
    279
    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