{"action":"created","issue":{"url":"https://api.github.com/repos/Demigiant/dotween/issues/167","repository_url":"https://api.github.com/repos/Demigiant/dotween","labels_url":"https://api.github.com/repos/Demigiant/dotween/issues/167/labels{/name}","comments_url":"https://api.github.com/repos/Demigiant/dotween/issues/167/comments","events_url":"https://api.github.com/repos/Demigiant/dotween/issues/167/events","html_url":"https://github.com/Demigiant/dotween/issues/167","id":271104437,"number":167,"title":"lockRotation has no effect with DOPath & SetLookAt","user":{"login":"mrtenda","id":1281326,"avatar_url":"https://avatars2.githubusercontent.com/u/1281326?v=4","gravatar_id":"","url":"https://api.github.com/users/mrtenda","html_url":"https://github.com/mrtenda","followers_url":"https://api.github.com/users/mrtenda/followers","following_url":"https://api.github.com/users/mrtenda/following{/other_user}","gists_url":"https://api.github.com/users/mrtenda/gists{/gist_id}","starred_url":"https://api.github.com/users/mrtenda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrtenda/subscriptions","organizations_url":"https://api.github.com/users/mrtenda/orgs","repos_url":"https://api.github.com/users/mrtenda/repos","events_url":"https://api.github.com/users/mrtenda/events{/privacy}","received_events_url":"https://api.github.com/users/mrtenda/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-11-03T20:08:25Z","updated_at":"2017-11-06T11:05:16Z","closed_at":null,"author_association":"NONE","body":"Hello, I am trying to use DOPath and SetLookAt to traverse the camera along a path while keeping the camera looking at the hero. Here's the code I am running:\r\n\r\n```\r\ntransform.DOPath(wps, 2, PathType.CatmullRom, PathMode.Full3D)\r\n.SetOptions(false, AxisConstraint.None, AxisConstraint.Z)\r\n.SetLookAt(Hero.transform);\r\n```\r\n\r\nHowever, despite specifying a locked rotation axis constraint of Z, the transform still rotates on the Z axis during the tween. The starting rotation for the transform is shown as `(20, 0, 0)` in the Unity inspector, and the final rotation for the transform at the completion of the tween is shown as `(139.238, -1.85199, 104.181)`.\r\n\r\nIs this the expected behavior? If so, what would the correct way to do this be? Thanks.\r\n\r\n(I am using DOTween Pro if that's relevant)"},"comment":{"url":"https://api.github.com/repos/Demigiant/dotween/issues/comments/342116788","html_url":"https://github.com/Demigiant/dotween/issues/167#issuecomment-342116788","issue_url":"https://api.github.com/repos/Demigiant/dotween/issues/167","id":342116788,"user":{"login":"Demigiant","id":8322877,"avatar_url":"https://avatars1.githubusercontent.com/u/8322877?v=4","gravatar_id":"","url":"https://api.github.com/users/Demigiant","html_url":"https://github.com/Demigiant","followers_url":"https://api.github.com/users/Demigiant/followers","following_url":"https://api.github.com/users/Demigiant/following{/other_user}","gists_url":"https://api.github.com/users/Demigiant/gists{/gist_id}","starred_url":"https://api.github.com/users/Demigiant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Demigiant/subscriptions","organizations_url":"https://api.github.com/users/Demigiant/orgs","repos_url":"https://api.github.com/users/Demigiant/repos","events_url":"https://api.github.com/users/Demigiant/events{/privacy}","received_events_url":"https://api.github.com/users/Demigiant/received_events","type":"User","site_admin":false},"created_at":"2017-11-06T11:05:16Z","updated_at":"2017-11-06T11:05:16Z","author_association":"OWNER","body":"Hi,\r\n\r\nI made some tests but everything seems ok here. Are you sure the transform is rotating around the Z axis? The fact that the euler Vector3 Z value changes, doesn't mean it's truly rotating around Z, since that is just a conversion from Quaternion, and the resulting euler isn't indicative.\r\n\r\nCheers,\r\nDaniele"}}
{"actor":{"display_login":"Demigiant"}}