{"action":"opened","issue":{"url":"https://api.github.com/repos/highfidelity/hifi/issues/9185","repository_url":"https://api.github.com/repos/highfidelity/hifi","labels_url":"https://api.github.com/repos/highfidelity/hifi/issues/9185/labels{/name}","comments_url":"https://api.github.com/repos/highfidelity/hifi/issues/9185/comments","events_url":"https://api.github.com/repos/highfidelity/hifi/issues/9185/events","html_url":"https://github.com/highfidelity/hifi/issues/9185","id":194826095,"number":9185,"title":"MyAvatar.addThrust Inconsitancies and Incorrect ground values","user":{"login":"Menithal","id":11814599,"avatar_url":"https://avatars.githubusercontent.com/u/11814599?v=3","gravatar_id":"","url":"https://api.github.com/users/Menithal","html_url":"https://github.com/Menithal","followers_url":"https://api.github.com/users/Menithal/followers","following_url":"https://api.github.com/users/Menithal/following{/other_user}","gists_url":"https://api.github.com/users/Menithal/gists{/gist_id}","starred_url":"https://api.github.com/users/Menithal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Menithal/subscriptions","organizations_url":"https://api.github.com/users/Menithal/orgs","repos_url":"https://api.github.com/users/Menithal/repos","events_url":"https://api.github.com/users/Menithal/events{/privacy}","received_events_url":"https://api.github.com/users/Menithal/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-12-11T11:08:00Z","updated_at":"2016-12-11T11:08:00Z","closed_at":null,"body":"It has feeled like addThrust adds more than what is specified for the Y, when the user is attached to a ground causing the user to go up more than to the direction the thrust should be going in.\r\n\r\nSo I decided to investigate, and now I have a test case for this and replication\r\n\r\nIn an empty domain:\r\nUsing the being of light avatar\r\n\r\n```\r\nMyAvatar.skeletonURL = \"\";\r\nMyAvatar.scale= 1;\r\nMyAvatar.position = Vec3.ZERO;\r\nMyAvatar.velocity = Vec3.ZERO;\r\nMyAvatar.orientation = Quat.ZERO;\r\nMyAvatar.addThrust({x:0, y:5000, z:5000});\r\n```\r\nAvatar gets relocated to a position where the y and the z axis are equal.\r\n\r\nDoing this multiple times can result in to different values!\r\nExpected would be a consistant value, but it wasnt.\r\n I got either 11.1, 22.2 or 33.3, but atleast both values were equal.\r\n\r\nNow when we add a platform in the near the center, with the avatar still located as close as possible to 0,0,0 when placed ontop\r\n\r\n```\r\nMyAvatar.skeletonURL = \"\";\r\nEntities.addEntity({type:\"Box\", dimensions:{x:10,y:0.5,z:10}, position:{x:0,y:-1.3062, z:0}, lifetime: 10});\r\nMyAvatar.scale= 1;\r\nMyAvatar.velocity = Vec3.ZERO;\r\nMyAvatar.position = Vec3.ZERO;\r\nMyAvatar.orientation = Quat.ZERO;\r\nScript.setTimeout(function () {\r\nMyAvatar.addThrust({x:0, y:50000, z:50000});\r\n},1000);\r\n```\r\nThe avatar gets pushed to a much, much! more higher altitude than of z axis.\r\n\r\nI got values raging from {0, 13.5, 11.1} to {0, 27.2, 22.2} , but in all cases, the y axis was always larger, unlike if the user was flying.\r\n\r\nSetting the thrust value to 50k causes some -wild- fluctuations, in which the avatar can get catapulted half a kilometer off in altitude compared to the Z axis.\r\n\r\nThe above inconsistency effects our ability to create alternative methods of locomotion within High Fidelity."}}
{"actor":{"display_login":"Menithal"}}