In Unity i started by creating a empty and then applying a new script component and then creating one private float variable for speed then made two public floats for distance and time. After that I create a function for distance and time and gave them a float speed. Once that was done I divided distance by time to give me speed then wrote a print command under that.
top of page
bottom of page
Comments