{"action":"created","issue":{"url":"https://api.github.com/repos/thestonefox/VRTK/issues/1560","repository_url":"https://api.github.com/repos/thestonefox/VRTK","labels_url":"https://api.github.com/repos/thestonefox/VRTK/issues/1560/labels{/name}","comments_url":"https://api.github.com/repos/thestonefox/VRTK/issues/1560/comments","events_url":"https://api.github.com/repos/thestonefox/VRTK/issues/1560/events","html_url":"https://github.com/thestonefox/VRTK/issues/1560","id":265517305,"number":1560,"title":"VRTK_Pointer - Custom Origin casting direction issue","user":{"login":"13Flo","id":146405,"avatar_url":"https://avatars1.githubusercontent.com/u/146405?v=4","gravatar_id":"","url":"https://api.github.com/users/13Flo","html_url":"https://github.com/13Flo","followers_url":"https://api.github.com/users/13Flo/followers","following_url":"https://api.github.com/users/13Flo/following{/other_user}","gists_url":"https://api.github.com/users/13Flo/gists{/gist_id}","starred_url":"https://api.github.com/users/13Flo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/13Flo/subscriptions","organizations_url":"https://api.github.com/users/13Flo/orgs","repos_url":"https://api.github.com/users/13Flo/repos","events_url":"https://api.github.com/users/13Flo/events{/privacy}","received_events_url":"https://api.github.com/users/13Flo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-10-14T19:25:04Z","updated_at":"2017-10-15T06:40:19Z","closed_at":null,"author_association":"NONE","body":"### Environment\r\n\r\n * VRTK 3.2.1 (Github)\r\n * Unity 5.6.3\r\n * HTC Vive\r\n * SteamVR\r\n\r\n### Steps to reproduce\r\n\r\n- Assign a custom origin to VRTK_Pointer\r\n- In Play mode, dynamically assign another custom origin\r\n\r\n### Expected behavior\r\n\r\nThe teleport bezier pointer should start from the newly assigned custom origin and cast to the related transform.forward direction.\r\n\r\n### Current behavior\r\n\r\nThe teleport bezier pointer does start from the newly assigned custom origin **BUT it casts to the previous custom origin transform.forward direction**. Manually changing the rotation of the previous custom origin does change the cast direction, while the start point is actually right, which does prove the above issue.\r\n"},"comment":{"url":"https://api.github.com/repos/thestonefox/VRTK/issues/comments/336690219","html_url":"https://github.com/thestonefox/VRTK/issues/1560#issuecomment-336690219","issue_url":"https://api.github.com/repos/thestonefox/VRTK/issues/1560","id":336690219,"user":{"login":"thestonefox","id":1029673,"avatar_url":"https://avatars0.githubusercontent.com/u/1029673?v=4","gravatar_id":"","url":"https://api.github.com/users/thestonefox","html_url":"https://github.com/thestonefox","followers_url":"https://api.github.com/users/thestonefox/followers","following_url":"https://api.github.com/users/thestonefox/following{/other_user}","gists_url":"https://api.github.com/users/thestonefox/gists{/gist_id}","starred_url":"https://api.github.com/users/thestonefox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thestonefox/subscriptions","organizations_url":"https://api.github.com/users/thestonefox/orgs","repos_url":"https://api.github.com/users/thestonefox/repos","events_url":"https://api.github.com/users/thestonefox/events{/privacy}","received_events_url":"https://api.github.com/users/thestonefox/received_events","type":"User","site_admin":false},"created_at":"2017-10-15T06:40:19Z","updated_at":"2017-10-15T06:40:19Z","author_association":"OWNER","body":"If you're dynamically assigning a custom origin at runtime then realistically you'd need to assign it via code, in that instance just disable the pointer script, (script.enabled = false) then swap the custom origin, then re-enable the script (script.enabled = true) this will ensure the setup is run again.\r\n\r\nThe alternative is to have a bunch of variables being checked in an update loop and if they change then it runs the setup, which I personally find overkill.\r\n\r\nThe ideal solution would be that you can use proper setters and getters on the variables so when the variable changes the setter knows to run additional logic, but these types of variable are not accessible via the Unity inspector"}}
{"actor":{"display_login":"thestonefox"}}