Reproduction Steps1. Add iTweenMoveTo action to a child game object
2. Setup the action to animate for a few seconds
3. Make sure the action's 'Space' = 'Self'
4. Run program
5. Drag the parent game object around the scene
Expected BehaviorThe animated child continues to move with the parent since it should only animate in local space.
Actual BehaviorThe child animates in world space and does not get dragged with the parent.
iTweenMoveTo.cs
Line 129hash.Add("space", space);
hash.Add("islocal", space == Space.Self );
Based on iTween documentation. Seems like sometimes they use 'space', other times 'islocal'.
http://itween.pixelplacement.com/documentation.php#MoveToiTweenMoveTo.cs
Line 153else tempVct3[tempVct3.Length - 1 - i] = transforms.Value.transform.position + (vectors.IsNone ? Vector3.zero : vectors.Value);
else tempVct3[tempVct3.Length - 1 - i] = (space == Space.World ? transforms.Value.transform.position : transforms.Value.transform.localPosition) + (vectors.IsNone ? Vector3.zero : vectors.Value);
Line 161 (For the non-reversed path)else tempVct3[tempVct3.Length - 1 - i] = transforms.Value.transform.position + (vectors.IsNone ? Vector3.zero : vectors.Value);
else tempVct3[tempVct3.Length - 1 - i] = (space == Space.World ? transforms.Value.transform.position : transforms.Value.transform.localPosition) + (vectors.IsNone ? Vector3.zero : vectors.Value);
The following classes should also use 'islocal' instead of 'space':
iTweenMoveFrom.cs
iTweenMoveUpdate.cs
iTweenRotateFrom.cs
iTweenRotateTo.cs
iTweenRotateUpdate.cs
Edit: One other thing, 'Move To Path' = true does not work when Space = Self. I think it might be an iTween bug though, not sure. The first path node it generates seems to be in world space.