any game developer pros know how do i make a thing bob up and down in unity?
@SamMortimer4 Mathf.Sin() will generate a sine wave between -1 and 1. Scale it, and use it in Update() to modify transform.localPosition.y
-
-
@EmilyGorcenski@ra thanks so much lovely ppl that wasn't as weird or complicated as i was expecting -
@EmilyGorcenski@ra oh wait!!!! is that java or c#? -
@SamMortimer4@ra C#, but the JavaScript api is basically the same. Check Unity's docs for the Mathf package. -
@EmilyGorcenski@ra kk thanks. i have absolutely zero grasp of REAL non-construct 2 programming so yh -
@sammortimer4@emilygorcenski programmer twitter has your back
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.