How to round position in Unity

1

My object moves through the keys A, D, W, S. It moves from 1 to 1. However, this position is not always round, and can range from 1.5 to 1,900 and this disrupts the collision. Is there any command to round positions?

    
asked by anonymous 27.05.2018 / 17:13

0 answers