- Home /
Question by
fevixlevix · Jul 16, 2020 at 03:41 PM ·
transform.positionteleportchild object
How do I teleport the children to the coordinates 0.36,0.0 in relation to the father
how would the code be for the son of my game object to teleport to position 0.36,0,0 in relation to the center of my game object? Thanks
Comment
Best Answer
Answer by ilagef · Jul 16, 2020 at 10:11 PM
Try to use transform.locaclPosition instead of transform.position:
transform.localPosition = new Vector3(0.36f, 0f,0f);