{"action":"created","issue":{"url":"https://api.github.com/repos/mrdoob/three.js/issues/8011","labels_url":"https://api.github.com/repos/mrdoob/three.js/issues/8011/labels{/name}","comments_url":"https://api.github.com/repos/mrdoob/three.js/issues/8011/comments","events_url":"https://api.github.com/repos/mrdoob/three.js/issues/8011/events","html_url":"https://github.com/mrdoob/three.js/pull/8011","id":128358493,"number":8011,"title":"Object update system example","user":{"login":"tormozok","id":3148089,"avatar_url":"https://avatars.githubusercontent.com/u/3148089?v=3","gravatar_id":"","url":"https://api.github.com/users/tormozok","html_url":"https://github.com/tormozok","followers_url":"https://api.github.com/users/tormozok/followers","following_url":"https://api.github.com/users/tormozok/following{/other_user}","gists_url":"https://api.github.com/users/tormozok/gists{/gist_id}","starred_url":"https://api.github.com/users/tormozok/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tormozok/subscriptions","organizations_url":"https://api.github.com/users/tormozok/orgs","repos_url":"https://api.github.com/users/tormozok/repos","events_url":"https://api.github.com/users/tormozok/events{/privacy}","received_events_url":"https://api.github.com/users/tormozok/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-23T23:08:55Z","updated_at":"2016-01-24T17:32:57Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/mrdoob/three.js/pulls/8011","html_url":"https://github.com/mrdoob/three.js/pull/8011","diff_url":"https://github.com/mrdoob/three.js/pull/8011.diff","patch_url":"https://github.com/mrdoob/three.js/pull/8011.patch"},"body":"I propose to add this example with big animated scene, where is 4 isolated animated objects. \r\n\r\nI use pattern when all objects on scene notified on update and change they state by their own program.\r\nIn result - big \"update\" function is splitted in many update event listeners with encapsulated logic of updating this objects. \r\n\r\nThis updating system is the good extension point for creation \"active\" objects (objects, who change self state in time; animated skinned mesh for example) and \"behaviors\" for objects (programs/mixins attached to the object; attached update listener is objects behavior). \r\n\r\nThis pattern is good for creation clean structure of your app. "},"comment":{"url":"https://api.github.com/repos/mrdoob/three.js/issues/comments/174321702","html_url":"https://github.com/mrdoob/three.js/pull/8011#issuecomment-174321702","issue_url":"https://api.github.com/repos/mrdoob/three.js/issues/8011","id":174321702,"user":{"login":"mrdoob","id":97088,"avatar_url":"https://avatars.githubusercontent.com/u/97088?v=3","gravatar_id":"","url":"https://api.github.com/users/mrdoob","html_url":"https://github.com/mrdoob","followers_url":"https://api.github.com/users/mrdoob/followers","following_url":"https://api.github.com/users/mrdoob/following{/other_user}","gists_url":"https://api.github.com/users/mrdoob/gists{/gist_id}","starred_url":"https://api.github.com/users/mrdoob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrdoob/subscriptions","organizations_url":"https://api.github.com/users/mrdoob/orgs","repos_url":"https://api.github.com/users/mrdoob/repos","events_url":"https://api.github.com/users/mrdoob/events{/privacy}","received_events_url":"https://api.github.com/users/mrdoob/received_events","type":"User","site_admin":false},"created_at":"2016-01-24T17:32:57Z","updated_at":"2016-01-24T17:32:57Z","body":"Do you mind targeting the `dev` branch instead?"}}