{"action":"created","issue":{"url":"https://api.github.com/repos/okamstudio/godot/issues/2217","labels_url":"https://api.github.com/repos/okamstudio/godot/issues/2217/labels{/name}","comments_url":"https://api.github.com/repos/okamstudio/godot/issues/2217/comments","events_url":"https://api.github.com/repos/okamstudio/godot/issues/2217/events","html_url":"https://github.com/okamstudio/godot/issues/2217","id":91946511,"number":2217,"title":"Function request: PhysicsShapeQueryParameters.sphere_cast","user":{"login":"seadra","id":9574367,"avatar_url":"https://avatars.githubusercontent.com/u/9574367?v=3","gravatar_id":"","url":"https://api.github.com/users/seadra","html_url":"https://github.com/seadra","followers_url":"https://api.github.com/users/seadra/followers","following_url":"https://api.github.com/users/seadra/following{/other_user}","gists_url":"https://api.github.com/users/seadra/gists{/gist_id}","starred_url":"https://api.github.com/users/seadra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seadra/subscriptions","organizations_url":"https://api.github.com/users/seadra/orgs","repos_url":"https://api.github.com/users/seadra/repos","events_url":"https://api.github.com/users/seadra/events{/privacy}","received_events_url":"https://api.github.com/users/seadra/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2015-06-30T01:02:05Z","updated_at":"2015-07-01T04:20:32Z","closed_at":null,"body":"([forum discussion](http://www.godotengine.org/forum/viewtopic.php?t=2175&p=10282))\r\n\r\n[Unity's SphereCast](http://docs.unity3d.com/ScriptReference/Physics.SphereCast.html) is quite an elementary and useful function.\r\n\r\nTo be fair, it seems it seems (I'm not sure though) is somehow possible to achieve a similar thing using the current API, but it is overly complicated and half of it isn't even documented. \r\n\r\nPlease add a similar high-level function to godot."},"comment":{"url":"https://api.github.com/repos/okamstudio/godot/issues/comments/117430245","html_url":"https://github.com/okamstudio/godot/issues/2217#issuecomment-117430245","issue_url":"https://api.github.com/repos/okamstudio/godot/issues/2217","id":117430245,"user":{"login":"seadra","id":9574367,"avatar_url":"https://avatars.githubusercontent.com/u/9574367?v=3","gravatar_id":"","url":"https://api.github.com/users/seadra","html_url":"https://github.com/seadra","followers_url":"https://api.github.com/users/seadra/followers","following_url":"https://api.github.com/users/seadra/following{/other_user}","gists_url":"https://api.github.com/users/seadra/gists{/gist_id}","starred_url":"https://api.github.com/users/seadra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seadra/subscriptions","organizations_url":"https://api.github.com/users/seadra/orgs","repos_url":"https://api.github.com/users/seadra/repos","events_url":"https://api.github.com/users/seadra/events{/privacy}","received_events_url":"https://api.github.com/users/seadra/received_events","type":"User","site_admin":false},"created_at":"2015-07-01T04:20:32Z","updated_at":"2015-07-01T04:20:32Z","body":"I've been tinkering about that. Would it work it I used a CapsuleShape rather than a SphereShape and set its height to max_distance?\r\n\r\nBTW I suppose I shouldn't call set_motion (no such function exist for PhysicsShapeQueryParameters). And I think the line `params.set_transform(get_transform().translated(origin))` is definitely wrong; it should be a transformation that corresponds to the same position as the main body, but looking at to `direction` with something like this?\r\n\r\n```gdscript\r\nget_transform.looking_at(direction, Vector3(1,0,0)) # up shouldn't matter since capsule is axially symmetric\r\n```"}}