Answer the question
In order to leave comments, you need to log in
Unity 2d initial movement?
How to implement the code in the Start() method so that at the very beginning the object has a random direction of movement in 2d? I'm just a newbie, please help
Answer the question
In order to leave comments, you need to log in
You can move along the axis and against the axis.
Accordingly, the vector of your movement must be either negative or positive.
Write a function that will randomly produce either 1 or -1 and multiply the result of this function by a vector.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question