{"action":"created","issue":{"url":"https://api.github.com/repos/GoranM/bdx/issues/183","labels_url":"https://api.github.com/repos/GoranM/bdx/issues/183/labels{/name}","comments_url":"https://api.github.com/repos/GoranM/bdx/issues/183/comments","events_url":"https://api.github.com/repos/GoranM/bdx/issues/183/events","html_url":"https://github.com/GoranM/bdx/issues/183","id":61694337,"number":183,"title":"Suggestion: new Component: \"Follow\"","user":{"login":"rafcolson","id":10002909,"avatar_url":"https://avatars.githubusercontent.com/u/10002909?v=3","gravatar_id":"","url":"https://api.github.com/users/rafcolson","html_url":"https://github.com/rafcolson","followers_url":"https://api.github.com/users/rafcolson/followers","following_url":"https://api.github.com/users/rafcolson/following{/other_user}","gists_url":"https://api.github.com/users/rafcolson/gists{/gist_id}","starred_url":"https://api.github.com/users/rafcolson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rafcolson/subscriptions","organizations_url":"https://api.github.com/users/rafcolson/orgs","repos_url":"https://api.github.com/users/rafcolson/repos","events_url":"https://api.github.com/users/rafcolson/events{/privacy}","received_events_url":"https://api.github.com/users/rafcolson/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-03-14T20:53:16Z","updated_at":"2015-03-19T09:52:44Z","closed_at":null,"body":"Hi guys,\r\n\r\nIt would be nice to have some build-in features such as following a target. This especially would be useful to add to a Camera. For 3D games the Camera would also need to track the target. But that's another component, which I'll present later.\r\n\r\nI already pulled a request for this. To use it you can do for example this:\r\n\r\n```java\r\npackage com.raco.game;\r\n\r\nimport com.nilunder.bdx.*;\r\nimport com.nilunder.bdx.components.*;\r\n\r\nimport javax.vecmath.Vector3f;\r\n\r\npublic class Cam extends Camera{\r\n    private static Follower follower;\r\n    private static GameObject target;\r\n\r\n    public void init(){\r\n        target = scene.objects.get(\"Sacky\");\r\n        float lerp = 0.05f;\r\n        Vector3f offset = new Vector3f(0, -5, 0);\r\n        follower = new Follower(this, target, lerp, offset);\r\n        components.add(follower);\r\n    }\r\n    \r\n    public void main(){\r\n    }\r\n    \r\n}\r\n```\r\nAny suggestions are more than welcome."},"comment":{"url":"https://api.github.com/repos/GoranM/bdx/issues/comments/83456208","html_url":"https://github.com/GoranM/bdx/issues/183#issuecomment-83456208","issue_url":"https://api.github.com/repos/GoranM/bdx/issues/183","id":83456208,"user":{"login":"GoranM","id":2141814,"avatar_url":"https://avatars.githubusercontent.com/u/2141814?v=3","gravatar_id":"","url":"https://api.github.com/users/GoranM","html_url":"https://github.com/GoranM","followers_url":"https://api.github.com/users/GoranM/followers","following_url":"https://api.github.com/users/GoranM/following{/other_user}","gists_url":"https://api.github.com/users/GoranM/gists{/gist_id}","starred_url":"https://api.github.com/users/GoranM/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoranM/subscriptions","organizations_url":"https://api.github.com/users/GoranM/orgs","repos_url":"https://api.github.com/users/GoranM/repos","events_url":"https://api.github.com/users/GoranM/events{/privacy}","received_events_url":"https://api.github.com/users/GoranM/received_events","type":"User","site_admin":false},"created_at":"2015-03-19T09:52:44Z","updated_at":"2015-03-19T09:52:44Z","body":"> I'll just keep it somewhere in my library.\r\n\r\nFor now, I think that would be best."}}