- Home /
Joints localPosition
Hello, i have a question about localPosition.. If i have for instance a sphere parented to a cube and i want that if the sphere moves to a certain value it performs an action something like if (sphere.transform.localPosition.x >= -0.2) .... Now that works fine but if i move the cube that action occurs aswell even though the local values of the sphere seem not to change...
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220613100051im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
child object does not show position change in editor even though it is rotating with its parent. 2 Answers
Instantiate cloned prefab to local position of an empty object 1 Answer
How to Lerp a position along one axis only? 2 Answers
How make an object child of other object without changing the child position? 0 Answers
getting object local direction? 1 Answer