Timeline for Unity Transform.Position not returning expected position
Current License: CC BY-SA 3.0
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jun 19, 2015 at 2:22 | comment | added | Michael Thompson | Yes I'm aware of that but that's not the problem. The object is attached to a limb on a character. When requesting the position of the limb (not local position), it returns the value of the parent's position which is different to the position of the object for which I wish to request the position | |
Jun 18, 2015 at 19:24 | comment | added | Zee | Remember, the level4 object's position is relative to his parent, if the parent is in xy(1,1) and the child is in xy(1,1) coordinates, then the childs coordinates are xy(2,2) in the world. | |
Jun 18, 2015 at 12:11 | comment | added | Michael Thompson | I've already targeted my object, which I have placed at the top of my script to show in the inspector. I have verified I have selected the correct game object. I already have the transform I need to address, however when I look at the position in my script, it gives me an unexpected position value, regardless of where the level 4 game object actually is in the 3d world. | |
Jun 18, 2015 at 12:06 | history | answered | Zee | CC BY-SA 3.0 |