{"action":"opened","issue":{"url":"https://api.github.com/repos/udacity/RL-Quadcopter-2/issues/1","repository_url":"https://api.github.com/repos/udacity/RL-Quadcopter-2","labels_url":"https://api.github.com/repos/udacity/RL-Quadcopter-2/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/udacity/RL-Quadcopter-2/issues/1/comments","events_url":"https://api.github.com/repos/udacity/RL-Quadcopter-2/issues/1/events","html_url":"https://github.com/udacity/RL-Quadcopter-2/issues/1","id":306249033,"number":1,"title":"PhysicsSim doesn't work with init_velocities","user":{"login":"Jwata","id":1701243,"avatar_url":"https://avatars3.githubusercontent.com/u/1701243?v=4","gravatar_id":"","url":"https://api.github.com/users/Jwata","html_url":"https://github.com/Jwata","followers_url":"https://api.github.com/users/Jwata/followers","following_url":"https://api.github.com/users/Jwata/following{/other_user}","gists_url":"https://api.github.com/users/Jwata/gists{/gist_id}","starred_url":"https://api.github.com/users/Jwata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jwata/subscriptions","organizations_url":"https://api.github.com/users/Jwata/orgs","repos_url":"https://api.github.com/users/Jwata/repos","events_url":"https://api.github.com/users/Jwata/events{/privacy}","received_events_url":"https://api.github.com/users/Jwata/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-18T15:17:26Z","updated_at":"2018-03-18T15:17:26Z","closed_at":null,"author_association":"NONE","body":"```\r\n# init\r\nsim = PhysicsSim(init_velocities=np.array([0.0, 0.0, 0.0]))\r\nsim.v\r\n=> array([0., 0., 0.])\r\nsim.init_velocities\r\n=> array([0., 0., 0.])\r\n\r\n# take step\r\nsim.next_timestep([0.0, 0.0, 0.0, 0.0])\r\n\r\nsim.init_velocities\r\n=> array([ 0.    ,  0.    , -0.1962]) # init_velocities has been changed\r\n\r\nsim.reset()\r\n\r\nsim.v\r\n=> array([ 0.    ,  0.    , -0.1962]) # initial v didn't get reset properly due to the updated init_velocities"}}
{"actor":{"display_login":"Jwata"}}