i have a line of code from my other game but desided to do it differntly but i only new how to do it in java script but i need this line of code to be java script so it will work. so could somone change it for me please
Vector3 snappedV3 = new Vector3(Math.Round(oldV3.x),Math.Round(oldV3.y),Math.Round(oldV3.z));