Answer the question
In order to leave comments, you need to log in
How to instantly reset the rotation values to zero?
Good day, there is a GO that uses rigidbody, the "Use gravity" checkbox is disabled because of this GO, so it flies freely. There is a method in which this GO needs to be spawned in a certain place and with the rotations thrown off. Tobish everything to zero. How to implement this, because I am looking for, but there is no such thing as new Vector3 (0,0,0) by type. Help who can
Answer the question
In order to leave comments, you need to log in
var spawn = Instantiate(source);
spawn.GetComponent<Rigidbody>().rotation = Quaternion.identity;
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question