{"action":"created","comment":{"url":"https://api.github.com/repos/spatialos/gdk-for-unity-fps-starter-project/pulls/comments/224038956","pull_request_review_id":163309035,"id":224038956,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyNDAzODk1Ng==","diff_hunk":"@@ -128,15 +138,22 @@ private void Update()\n \n     private void Update_LookingForTarget()\n     {\n-        if (!agent.hasPath)\n+        if (!agent.isOnNavMesh)\n+        {\n+            // If agent has fallen off the nav mesh, move forward and attempt to get back on the navmesh.\n+            var velocity = transform.forward;\n+            var rotation = Quaternion.LookRotation(velocity, Vector3.up);\n+            var speed = sprintNext ? MovementSpeed.Sprint : MovementSpeed.Run;\n+            movementDriver.ApplyMovement(velocity, rotation, speed, jumpNext);\n+            jumpNext = false;\n+            agent.Warp(transform.position);\n+        }\n+        else if (agent.remainingDistance < 0.3f || agent.pathStatus == NavMeshPathStatus.PathInvalid || !agent.hasPath)","path":"workers/unity/Assets/Fps/Scripts/SimulatedPlayer/SimulatedPlayerDriver.cs","position":67,"original_position":67,"commit_id":"e84f439c02de1003e1117a7013914ccc08283c0d","original_commit_id":"e84f439c02de1003e1117a7013914ccc08283c0d","user":{"login":"paulbalaji","id":10051819,"node_id":"MDQ6VXNlcjEwMDUxODE5","avatar_url":"https://avatars1.githubusercontent.com/u/10051819?v=4","gravatar_id":"","url":"https://api.github.com/users/paulbalaji","html_url":"https://github.com/paulbalaji","followers_url":"https://api.github.com/users/paulbalaji/followers","following_url":"https://api.github.com/users/paulbalaji/following{/other_user}","gists_url":"https://api.github.com/users/paulbalaji/gists{/gist_id}","starred_url":"https://api.github.com/users/paulbalaji/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paulbalaji/subscriptions","organizations_url":"https://api.github.com/users/paulbalaji/orgs","repos_url":"https://api.github.com/users/paulbalaji/repos","events_url":"https://api.github.com/users/paulbalaji/events{/privacy}","received_events_url":"https://api.github.com/users/paulbalaji/received_events","type":"User","site_admin":false},"body":"nit: magic number","created_at":"2018-10-10T11:37:52Z","updated_at":"2018-10-10T11:37:52Z","html_url":"https://github.com/spatialos/gdk-for-unity-fps-starter-project/pull/22#discussion_r224038956","pull_request_url":"https://api.github.com/repos/spatialos/gdk-for-unity-fps-starter-project/pulls/22","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/spatialos/gdk-for-unity-fps-starter-project/pulls/comments/224038956"},"html":{"href":"https://github.com/spatialos/gdk-for-unity-fps-starter-project/pull/22#discussion_r224038956"},"pull_request":{"href":"https://api.github.com/repos/spatialos/gdk-for-unity-fps-starter-project/pulls/22"}}},"pull_request":{"url":"https://api.github.com/repos/spatialos/gdk-for-unity-fps-starter-project/pulls/22","id":221598194,"node_id":"MDExOlB1bGxSZXF1ZXN0MjIxNTk4MTk0","html_url":"https://github.com/spatialos/gdk-for-unity-fps-starter-project/pull/22","diff_url":"https://github.com/spatialos/gdk-for-unity-fps-starter-project/pull/22.diff","patch_url":"https://github.com/spatialos/gdk-for-unity-fps-starter-project/pull/22.patch","issue_url":"https://api.github.com/repos/spatialos/gdk-for-unity-fps-starter-project/issues/22","number":22,"state":"open","locked":false,"title":"Fix/Simulated Players","user":{"login":"mattyoung-improbable","id":38857629,"node_id":"MDQ6VXNlcjM4ODU3NjI5","avatar_url":"https://avatars3.githubusercontent.com/u/38857629?v=4","gravatar_id":"","url":"https://api.github.com/users/mattyoung-improbable","html_url":"https://github.com/mattyoung-improbable","followers_url":"https://api.github.com/users/mattyoung-improbable/followers","following_url":"https://api.github.com/users/mattyoung-improbable/following{/other_user}","gists_url":"https://api.github.com/users/mattyoung-improbable/gists{/gist_id}","starred_url":"https://api.github.com/users/mattyoung-improbable/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattyoung-improbable/subscriptions","organizations_url":"https://api.github.com/users/mattyoung-improbable/orgs","repos_url":"https://api.github.com/users/mattyoung-improbable/repos","events_url":"https://api.github.com/users/mattyoung-improbable/events{/privacy}","received_events_url":"https://api.github.com/users/mattyoung-improbable/received_events","type":"User","site_admin":false},"body":"#### Description\r\n1. AI fixes to simulated players. Attempt to get back onto the navmesh if they get lost. Give up and respawn if they don't move for a while.\r\n1. Reduce interest radius of simulated players.\r\n1. Updates to use new level prefabs.","created_at":"2018-10-09T21:54:16Z","updated_at":"2018-10-10T11:37:52Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ead149e90fadcdd77704e565d74a1c7b2ee939ab","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/spatialos/gdk-for-unity-fps-starter-project/pulls/22/commits","review_comments_url":"https://api.github.com/repos/spatialos/gdk-for-unity-fps-starter-project/pulls/22/comments","review_comment_url":"https://api.github.com/repos/spatialos/gdk-for-unity-fps-starter-project/pulls/comments{/number}","comments_url":"https://api.github.com/repos/spatialos/gdk-for-unity-fps-starter-project/issues/22/comments","statuses_url":"https://api.github.com/repos/spatialos/gdk-for-unity-fps-starter-project/statuses/e84f439c02de1003e1117a7013914ccc08283c0d","head":{"label":"spatialos:fix/fake-players","ref":"fix/fake-players","sha":"e84f439c02de1003e1117a7013914ccc08283c0d","user":{"login":"spatialos","id":23554165,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIzNTU0MTY1","avatar_url":"https://avatars2.githubusercontent.com/u/23554165?v=4","gravatar_id":"","url":"https://api.github.com/users/spatialos","html_url":"https://github.com/spatialos","followers_url":"https://api.github.com/users/spatialos/followers","following_url":"https://api.github.com/users/spatialos/following{/other_user}","gists_url":"https://api.github.com/users/spatialos/gists{/gist_id}","starred_url":"https://api.github.com/users/spatialos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spatialos/subscriptions","organizations_url":"https://api.github.com/users/spatialos/orgs","repos_url":"https://api.github.com/users/spatialos/repos","events_url":"https://api.github.com/users/spatialos/events{/privacy}","received_events_url":"https://api.github.com/users/spatialos/received_events","type":"Organization","site_admin":false},"repo":{"id":152123385,"node_id":"MDEwOlJlcG9zaXRvcnkxNTIxMjMzODU=","name":"gdk-for-unity-fps-starter-project","full_name":"spatialos/gdk-for-unity-fps-starter-project","private":false,"owner":{"login":"spatialos","id":23554165,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIzNTU0MTY1","avatar_url":"https://avatars2.githubusercontent.com/u/23554165?v=4","gravatar_id":"","url":"https://api.github.com/users/spatialos","html_url":"https://github.com/spatialos","followers_url":"https://api.github.com/users/spatialos/followers","following_url":"https://api.github.com/users/spatialos/following{/other_user}","gists_url":"https://api.github.com/users/spatialos/gists{/gist_id}","starred_url":"https://api.github.com/users/spatialos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spatialos/subscriptions","organizations_url":"https://api.github.com/users/spatialos/orgs","repos_url":"https://api.github.com/users/spatialos/repos","events_url":"https://api.github.com/users/spatialos/events{/privacy}","received_events_url":"https://api.github.com/users/spatialos/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/spatialos/gdk-for-unity-fps-starter-project","description":"SpatialOS GDK for Unity FPS Starter Project","fork":false,"url":"https://api.github.com/repos/spatialos/gdk-for-unity-fps-starter-project","forks_url":"https://api.github.com/repos/spatialos/gdk-for-unity-fps-starter-project/forks","keys_url":"https://api.github.com/repos/spatialos/gdk-for-unity-fps-starter-project/keys{/key_id}","collaborators_url":"https://api.github.com/repos/spatialos/gdk-for-unity-fps-starter-project/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/spatialos/gdk-for-unity-fps-starter-project/teams","hooks_url":"https://api.github.com/repos/spatialos/gdk-for-unity-fps-starter-project/hooks","issue_events_url":"https://api.github.com/repos/spatialos/gdk-for-unity-fps-starter-project/issues/events{/number}","events_url":"https://api.github.com/repos/spatialos/gdk-for-unity-fps-starter-project/events","assignees_url":"https://api.github.com/repos/spatialos/gdk-for-unity-fps-starter-project/assignees{/user}","branches_url":"https://api.github.com/repos/spatialos/gdk-for-unity-fps-starter-project/branches{/branch}","tags_url":"https://api.github.com/repos/spatialos/gdk-for-unity-fps-starter-project/tags","blobs_url":"https://api.github.com/repos/spatialos/gdk-for-unity-fps-starter-project/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/spatialos/gdk-for-unity-fps-starter-project/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/spatialos/gdk-for-unity-fps-starter-project/git/refs{/sha}","trees_url":"https://api.github.com/repos/spatialos/gdk-for-unity-fps-starter-project/git/trees{/sha}","statuses_url":"https://api.github.com/repos/spatialos/gdk-for-unity-fps-starter-project/statuses/{sha}","languages_url":"https://api.github.com/repos/spatialos/gdk-for-unity-fps-starter-project/languages","stargazers_url":"https://api.github.com/repos/spatialos/gdk-for-unity-fps-starter-project/stargazers","contributors_url":"https://api.github.com/repos/spatialos/gdk-for-unity-fps-starter-project/contributors","subscribers_url":"https://api.github.com/repos/spatialos/gdk-for-unity-fps-starter-project/subscribers","subscription_url":"https://api.github.com/repos/spatialos/gdk-for-unity-fps-starter-project/subscription","commits_url":"https://api.github.com/repos/spatialos/gdk-for-unity-fps-starter-project/commits{/sha}","git_commits_url":"https://api.github.com/repos/spatialos/gdk-for-unity-fps-starter-project/git/commits{/sha}","comments_url":"https://api.github.com/repos/spatialos/gdk-for-unity-fps-starter-project/comments{/number}","issue_comment_url":"https://api.github.com/repos/spatialos/gdk-for-unity-fps-starter-project/issues/comments{/number}","contents_url":"https://api.github.com/repos/spatialos/gdk-for-unity-fps-starter-project/contents/{+path}","compare_url":"https://api.github.com/repos/spatialos/gdk-for-unity-fps-starter-project/compare/{base}...{head}","merges_url":"https://api.github.com/repos/spatialos/gdk-for-unity-fps-starter-project/merges","archive_url":"https://api.github.com/repos/spatialos/gdk-for-unity-fps-starter-project/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/spatialos/gdk-for-unity-fps-starter-project/downloads","issues_url":"https://api.github.com/repos/spatialos/gdk-for-unity-fps-starter-project/issues{/number}","pulls_url":"https://api.github.com/repos/spatialos/gdk-for-unity-fps-starter-project/pulls{/number}","milestones_url":"https://api.github.com/repos/spatialos/gdk-for-unity-fps-starter-project/milestones{/number}","notifications_url":"https://api.github.com/repos/spatialos/gdk-for-unity-fps-starter-project/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/spatialos/gdk-for-unity-fps-starter-project/labels{/name}","releases_url":"https://api.github.com/repos/spatialos/gdk-for-unity-fps-starter-project/releases{/id}","deployments_url":"https://api.github.com/repos/spatialos/gdk-for-unity-fps-starter-project/deployments","created_at":"2018-10-08T17:59:47Z","updated_at":"2018-10-10T11:31:50Z","pushed_at":"2018-10-10T11:31:50Z","git_url":"git://github.com/spatialos/gdk-for-unity-fps-starter-project.git","ssh_url":"git@github.com:spatialos/gdk-for-unity-fps-starter-project.git","clone_url":"https://github.com/spatialos/gdk-for-unity-fps-starter-project.git","svn_url":"https://github.com/spatialos/gdk-for-unity-fps-starter-project","homepage":"https://gdk.improbable.io/spatialos-gdk-unity","size":163258,"stargazers_count":8,"watchers_count":8,"language":"C#","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":5,"license":{"key":"other","name":"NOASSERTION","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":1,"open_issues":5,"watchers":8,"default_branch":"master"}},"base":{"label":"spatialos:master","ref":"master","sha":"c469ac8f69c0b2c94bf5f083626690d1012a2a55","user":{"login":"spatialos","id":23554165,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIzNTU0MTY1","avatar_url":"https://avatars2.githubusercontent.com/u/23554165?v=4","gravatar_id":"","url":"https://api.github.com/users/spatialos","html_url":"https://github.com/spatialos","followers_url":"https://api.github.com/users/spatialos/followers","following_url":"https://api.github.com/users/spatialos/following{/other_user}","gists_url":"https://api.github.com/users/spatialos/gists{/gist_id}","starred_url":"https://api.github.com/users/spatialos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spatialos/subscriptions","organizations_url":"https://api.github.com/users/spatialos/orgs","repos_url":"https://api.github.com/users/spatialos/repos","events_url":"https://api.github.com/users/spatialos/events{/privacy}","received_events_url":"https://api.github.com/users/spatialos/received_events","type":"Organization","site_admin":false},"repo":{"id":152123385,"node_id":"MDEwOlJlcG9zaXRvcnkxNTIxMjMzODU=","name":"gdk-for-unity-fps-starter-project","full_name":"spatialos/gdk-for-unity-fps-starter-project","private":false,"owner":{"login":"spatialos","id":23554165,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIzNTU0MTY1","avatar_url":"https://avatars2.githubusercontent.com/u/23554165?v=4","gravatar_id":"","url":"https://api.github.com/users/spatialos","html_url":"https://github.com/spatialos","followers_url":"https://api.github.com/users/spatialos/followers","following_url":"https://api.github.com/users/spatialos/following{/other_user}","gists_url":"https://api.github.com/users/spatialos/gists{/gist_id}","starred_url":"https://api.github.com/users/spatialos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spatialos/subscriptions","organizations_url":"https://api.github.com/users/spatialos/orgs","repos_url":"https://api.github.com/users/spatialos/repos","events_url":"https://api.github.com/users/spatialos/events{/privacy}","received_events_url":"https://api.github.com/users/spatialos/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/spatialos/gdk-for-unity-fps-starter-project","description":"SpatialOS GDK for Unity FPS Starter Project","fork":false,"url":"https://api.github.com/repos/spatialos/gdk-for-unity-fps-starter-project","forks_url":"https://api.github.com/repos/spatialos/gdk-for-unity-fps-starter-project/forks","keys_url":"https://api.github.com/repos/spatialos/gdk-for-unity-fps-starter-project/keys{/key_id}","collaborators_url":"https://api.github.com/repos/spatialos/gdk-for-unity-fps-starter-project/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/spatialos/gdk-for-unity-fps-starter-project/teams","hooks_url":"https://api.github.com/repos/spatialos/gdk-for-unity-fps-starter-project/hooks","issue_events_url":"https://api.github.com/repos/spatialos/gdk-for-unity-fps-starter-project/issues/events{/number}","events_url":"https://api.github.com/repos/spatialos/gdk-for-unity-fps-starter-project/events","assignees_url":"https://api.github.com/repos/spatialos/gdk-for-unity-fps-starter-project/assignees{/user}","branches_url":"https://api.github.com/repos/spatialos/gdk-for-unity-fps-starter-project/branches{/branch}","tags_url":"https://api.github.com/repos/spatialos/gdk-for-unity-fps-starter-project/tags","blobs_url":"https://api.github.com/repos/spatialos/gdk-for-unity-fps-starter-project/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/spatialos/gdk-for-unity-fps-starter-project/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/spatialos/gdk-for-unity-fps-starter-project/git/refs{/sha}","trees_url":"https://api.github.com/repos/spatialos/gdk-for-unity-fps-starter-project/git/trees{/sha}","statuses_url":"https://api.github.com/repos/spatialos/gdk-for-unity-fps-starter-project/statuses/{sha}","languages_url":"https://api.github.com/repos/spatialos/gdk-for-unity-fps-starter-project/languages","stargazers_url":"https://api.github.com/repos/spatialos/gdk-for-unity-fps-starter-project/stargazers","contributors_url":"https://api.github.com/repos/spatialos/gdk-for-unity-fps-starter-project/contributors","subscribers_url":"https://api.github.com/repos/spatialos/gdk-for-unity-fps-starter-project/subscribers","subscription_url":"https://api.github.com/repos/spatialos/gdk-for-unity-fps-starter-project/subscription","commits_url":"https://api.github.com/repos/spatialos/gdk-for-unity-fps-starter-project/commits{/sha}","git_commits_url":"https://api.github.com/repos/spatialos/gdk-for-unity-fps-starter-project/git/commits{/sha}","comments_url":"https://api.github.com/repos/spatialos/gdk-for-unity-fps-starter-project/comments{/number}","issue_comment_url":"https://api.github.com/repos/spatialos/gdk-for-unity-fps-starter-project/issues/comments{/number}","contents_url":"https://api.github.com/repos/spatialos/gdk-for-unity-fps-starter-project/contents/{+path}","compare_url":"https://api.github.com/repos/spatialos/gdk-for-unity-fps-starter-project/compare/{base}...{head}","merges_url":"https://api.github.com/repos/spatialos/gdk-for-unity-fps-starter-project/merges","archive_url":"https://api.github.com/repos/spatialos/gdk-for-unity-fps-starter-project/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/spatialos/gdk-for-unity-fps-starter-project/downloads","issues_url":"https://api.github.com/repos/spatialos/gdk-for-unity-fps-starter-project/issues{/number}","pulls_url":"https://api.github.com/repos/spatialos/gdk-for-unity-fps-starter-project/pulls{/number}","milestones_url":"https://api.github.com/repos/spatialos/gdk-for-unity-fps-starter-project/milestones{/number}","notifications_url":"https://api.github.com/repos/spatialos/gdk-for-unity-fps-starter-project/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/spatialos/gdk-for-unity-fps-starter-project/labels{/name}","releases_url":"https://api.github.com/repos/spatialos/gdk-for-unity-fps-starter-project/releases{/id}","deployments_url":"https://api.github.com/repos/spatialos/gdk-for-unity-fps-starter-project/deployments","created_at":"2018-10-08T17:59:47Z","updated_at":"2018-10-10T11:31:50Z","pushed_at":"2018-10-10T11:31:50Z","git_url":"git://github.com/spatialos/gdk-for-unity-fps-starter-project.git","ssh_url":"git@github.com:spatialos/gdk-for-unity-fps-starter-project.git","clone_url":"https://github.com/spatialos/gdk-for-unity-fps-starter-project.git","svn_url":"https://github.com/spatialos/gdk-for-unity-fps-starter-project","homepage":"https://gdk.improbable.io/spatialos-gdk-unity","size":163258,"stargazers_count":8,"watchers_count":8,"language":"C#","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":5,"license":{"key":"other","name":"NOASSERTION","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":1,"open_issues":5,"watchers":8,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/spatialos/gdk-for-unity-fps-starter-project/pulls/22"},"html":{"href":"https://github.com/spatialos/gdk-for-unity-fps-starter-project/pull/22"},"issue":{"href":"https://api.github.com/repos/spatialos/gdk-for-unity-fps-starter-project/issues/22"},"comments":{"href":"https://api.github.com/repos/spatialos/gdk-for-unity-fps-starter-project/issues/22/comments"},"review_comments":{"href":"https://api.github.com/repos/spatialos/gdk-for-unity-fps-starter-project/pulls/22/comments"},"review_comment":{"href":"https://api.github.com/repos/spatialos/gdk-for-unity-fps-starter-project/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/spatialos/gdk-for-unity-fps-starter-project/pulls/22/commits"},"statuses":{"href":"https://api.github.com/repos/spatialos/gdk-for-unity-fps-starter-project/statuses/e84f439c02de1003e1117a7013914ccc08283c0d"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"paulbalaji"}}