M
M
markanez2021-07-28 21:40:12
Unity
markanez, 2021-07-28 21:40:12

How to make an object spawn with a random "Rotation"?

How to make an object spawn with a random "Rotation"?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
thehlopster, 2021-07-29
@markanez

private void Start()
{
        transform.Rotate(new Vector3(Random.Range(0f, 360f), Random.Range(0f, 360f), Random.Range(0f, 360f)));
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question