Categories
How to round a value?
I have an object whose coordinates will be (0.023, 18.34, 2.24) I want to round these coordinates, how can I do this? this.transform.position = new Vector3(... , ... , ...)?
Answer the question
In order to leave comments, you need to log in
Take and round each individual component via Math.Round
Didn't find what you were looking for?
Ask a Question
731 491 924 answers to any question