Question about Transform

Hello, i was making a script and i have an GameObject called “arrow” and this GameObject is “son” of an other called “bow”. So the Transform window show me x, y and z in relation to “bow” but when i make a script and i change the “flecha” transform using Transform.position is in relation to world. Have some way to use script in relation to “bow”?

Sorry for my bad english.

transfrom.position; // get/set GLOBAL position
transform.localPosition; // get/set LOCAL position

pro tip: use the API

1 Like