P
P
parusa2021-11-30 23:00:26
C++ / C#
parusa, 2021-11-30 23:00:26

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

1 answer(s)
V
Vasily Bannikov, 2021-11-30
@parusa

Take and round each individual component via Math.Round

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question