{"action":"opened","issue":{"url":"https://api.github.com/repos/ziggi/FCNPC/issues/48","repository_url":"https://api.github.com/repos/ziggi/FCNPC","labels_url":"https://api.github.com/repos/ziggi/FCNPC/issues/48/labels{/name}","comments_url":"https://api.github.com/repos/ziggi/FCNPC/issues/48/comments","events_url":"https://api.github.com/repos/ziggi/FCNPC/issues/48/events","html_url":"https://github.com/ziggi/FCNPC/issues/48","id":205326028,"number":48,"title":"Movement bug","user":{"login":"ziggi","id":1020099,"avatar_url":"https://avatars.githubusercontent.com/u/1020099?v=3","gravatar_id":"","url":"https://api.github.com/users/ziggi","html_url":"https://github.com/ziggi","followers_url":"https://api.github.com/users/ziggi/followers","following_url":"https://api.github.com/users/ziggi/following{/other_user}","gists_url":"https://api.github.com/users/ziggi/gists{/gist_id}","starred_url":"https://api.github.com/users/ziggi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ziggi/subscriptions","organizations_url":"https://api.github.com/users/ziggi/orgs","repos_url":"https://api.github.com/users/ziggi/repos","events_url":"https://api.github.com/users/ziggi/events{/privacy}","received_events_url":"https://api.github.com/users/ziggi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-02-04T05:56:53Z","updated_at":"2017-02-04T05:56:53Z","closed_at":null,"body":"Possible related with #41.\r\n\r\n> Hello, I recently realized that my NPC was not setting the angle for the player correctly, because I calculate the angle taking the two positions (NPC and Player). But then I realized that the problem was not in the calculation, but in the position that FCNPC_GetPosition was returning, as in the image below, it is returning the position a little ahead of where I see the NPC (even if the NPC is stopped):\r\n> \r\n> ![](http://i.imgur.com/7qykKjG.png)\r\n> \r\n> \r\n> Studying a little more about this BUG, the same happens after using some function that moves the NPC. The function will always return around 1.0 meters from where npc's SKIN really is.\r\n> \r\n> NOTE: The same is also true for FCNPC_SetAngleToPlayer. If the player is too close to the NPC, the angle will be reversed, causing the npc to stand with its back to the player."}}
{"actor":{"display_login":"ziggi"}}