{"action":"created","issue":{"url":"https://api.github.com/repos/godotengine/godot/issues/7589","repository_url":"https://api.github.com/repos/godotengine/godot","labels_url":"https://api.github.com/repos/godotengine/godot/issues/7589/labels{/name}","comments_url":"https://api.github.com/repos/godotengine/godot/issues/7589/comments","events_url":"https://api.github.com/repos/godotengine/godot/issues/7589/events","html_url":"https://github.com/godotengine/godot/issues/7589","id":202184479,"number":7589,"title":"Raycast to Area not adhering to Layer/Mask","user":{"login":"thebluefish","id":4490910,"avatar_url":"https://avatars1.githubusercontent.com/u/4490910?v=3","gravatar_id":"","url":"https://api.github.com/users/thebluefish","html_url":"https://github.com/thebluefish","followers_url":"https://api.github.com/users/thebluefish/followers","following_url":"https://api.github.com/users/thebluefish/following{/other_user}","gists_url":"https://api.github.com/users/thebluefish/gists{/gist_id}","starred_url":"https://api.github.com/users/thebluefish/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thebluefish/subscriptions","organizations_url":"https://api.github.com/users/thebluefish/orgs","repos_url":"https://api.github.com/users/thebluefish/repos","events_url":"https://api.github.com/users/thebluefish/events{/privacy}","received_events_url":"https://api.github.com/users/thebluefish/received_events","type":"User","site_admin":false},"labels":[{"id":73330066,"url":"https://api.github.com/repos/godotengine/godot/labels/enhancement","name":"enhancement","color":"44bbff","default":true},{"id":370471880,"url":"https://api.github.com/repos/godotengine/godot/labels/topic:physics","name":"topic:physics","color":"ffdd44","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2017-01-20T16:33:40Z","updated_at":"2017-06-02T16:05:45Z","closed_at":null,"body":"**Operating system or device - Godot version:**\r\n2.1.1 STABLE\r\n3.0-alpha\r\n\r\n**Issue description:**\r\nRaycast nodes have a Layer Mask property to filter which CollisionObjects are picked up by the cast. The Layer/Mask works properly for PhysicsBody objects such as KinematicBody, but not for Area. Regardless of which Layer/Mask is specified for Area or RayCast, the RayCast will detect a collision with the Area.\r\n\r\n**Steps to reproduce:**\r\n- Create node `Area`\r\n - Create child `CollisionShape` - Set to any desired shape\r\n- Create node `RayCast`\r\n - Set Layer Mask to exclude Layer(s) used by Area\r\n- Observe that `RayCast` node's `is_colliding()` returns `True`\r\n\r\n\r\n**Link to minimal example project:**\r\n\r\nThis ZIP contains 2.1.1-Compatible and 3.0-alpha-Compatible scenes.\r\n\r\n[test_proj.zip](https://github.com/godotengine/godot/files/719905/test_proj.zip)\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/godotengine/godot/issues/comments/305833083","html_url":"https://github.com/godotengine/godot/issues/7589#issuecomment-305833083","issue_url":"https://api.github.com/repos/godotengine/godot/issues/7589","id":305833083,"user":{"login":"RandomShaper","id":11797174,"avatar_url":"https://avatars3.githubusercontent.com/u/11797174?v=3","gravatar_id":"","url":"https://api.github.com/users/RandomShaper","html_url":"https://github.com/RandomShaper","followers_url":"https://api.github.com/users/RandomShaper/followers","following_url":"https://api.github.com/users/RandomShaper/following{/other_user}","gists_url":"https://api.github.com/users/RandomShaper/gists{/gist_id}","starred_url":"https://api.github.com/users/RandomShaper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RandomShaper/subscriptions","organizations_url":"https://api.github.com/users/RandomShaper/orgs","repos_url":"https://api.github.com/users/RandomShaper/repos","events_url":"https://api.github.com/users/RandomShaper/events{/privacy}","received_events_url":"https://api.github.com/users/RandomShaper/received_events","type":"User","site_admin":false},"created_at":"2017-06-02T16:05:45Z","updated_at":"2017-06-02T16:05:45Z","body":"The code path for 3D was wrong; for 2D it's OK.\r\n\r\nAre you still able to reproduce the issue in 2D?"}}
{"actor":{"display_login":"RandomShaper"}}