Hello i have a quick question regarding gameobjects positions. Is there a way to always set a gameobjects position to a whole number/int. Almost make it snap to a position.
Thanks
Found the right answear for anyone that is still wondering:
Vector3 a = BlockPosBuild.transform.position;
Vector3 b = new Vector3(Mathf.Floor(a.x), Mathf.Floor(a.y + 1), Mathf.Floor(a.z));
//this is the gameobject
BlockPosBuild.transform.position = b;