Godot: Area2D does not report input events if it is not in a collision layer

Created on 11 Sep 2017  路  7Comments  路  Source: godotengine/godot

Operating system or device, Godot version, GPU Model and driver (if graphics related):
Windows 7 - 64bits
Godot 2.2

Issue description:
Area2D does not report input events if it is not in a collision layer.
I think the collision layers have nothing to do with the detection of input events so it should always detect them (when it is pickable, obviously).

Link to minimal example project:
Area2D Input Bug.zip (Run with _Visible Collision Shapes_)

bug physics

Most helpful comment

I think it can still be considered a bug that picking doesn't work if not in a collision layer. Picking is likely done by a RayCast and thus uses collision layers behind the scene, but in the case of processing input events as a user I wouldn't expect it to matter.

All 7 comments

Can you reproduce this with Godot 3?

Yes

just ran into this issue good thing i searched before making a new one xD. i checked layer 1 and boom, input detection is working. =]. i had pickable enabled so i was like wtf lol
edit: this happens with KinematicBody2D as well

Can reproduce on 3.1.1.

If this is not fixable due to how mouse picking is implemented, a hint in the documentation and editor would be good to have to avoid confusion.

Likely fixed in #28608
Unless the correct solution would be to somehow change how picking works.

I think it can still be considered a bug that picking doesn't work if not in a collision layer. Picking is likely done by a RayCast and thus uses collision layers behind the scene, but in the case of processing input events as a user I wouldn't expect it to matter.

Reopening as #40193 was reverted due to #40705.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mefihl picture mefihl  路  3Comments

nunodonato picture nunodonato  路  3Comments

SleepProgger picture SleepProgger  路  3Comments

RebelliousX picture RebelliousX  路  3Comments

n-pigeon picture n-pigeon  路  3Comments