transform.rotation = closestTransform.rotation; code example Example: transform.rotation = closestTransform.rotation; transform.rotation = closestTransform.rotation;