You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While looking at the code for PhysicsShapeQueryParameters2D, I noticed the property name collision_layer was different than the name in the implementation (collision_mask). This also occurs in the parameter names for various intersect_... functions in PhysicsDirectSpaceState2D. The implementation behaves as collision_mask, as it should.
This mismatch is also apparent in the documentation, for example here. The parameter name is listed as "collision_layer", but the description only talks about a collision_mask. This can only serve to confuse users even more, given the already confusing nature of the two properties.
Godot version:
3.2, 4.0.dev
Issue description:
While looking at the code for
PhysicsShapeQueryParameters2D
, I noticed the property namecollision_layer
was different than the name in the implementation (collision_mask
). This also occurs in the parameter names for variousintersect_...
functions inPhysicsDirectSpaceState2D
. The implementation behaves as collision_mask, as it should.This mismatch is also apparent in the documentation, for example here. The parameter name is listed as "collision_layer", but the description only talks about a collision_mask. This can only serve to confuse users even more, given the already confusing nature of the two properties.
PhysicsShapeQueryParameters2D:
PhysicsDirectSpaceState2D:
Note the parameter name "collision_layer". This bound function passes through to eventually arrive at this, with parameter "p_collision_mask":
The text was updated successfully, but these errors were encountered: