void DetectPlaceVoxel() { if (!Input.GetMouseButtonDown(1)) { return; } RaycastHit hit; if (Physics.Raycast(transform.position, transform.forward, out hit, max_edit_distance)) { Terraformer.SetVoxel(hit, block_to_place.Clone(), true);//place in adjacent } }