diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2017-06-14 23:04:04 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-14 23:04:04 +0200 |
commit | bccee07ae714b43df135199594899ed88389d7b4 (patch) | |
tree | 5c952ee4e45e1363f3d7d0768b99db457cd5b046 /scene/2d/ray_cast_2d.h | |
parent | be3115119994141d3708eb67cfb7db3bc14f84a8 (diff) | |
parent | 6c44fff5088d445d60ccd7109c8b5163a0764a7c (diff) |
Merge pull request #9165 from Noshyaar/pr-area
Refactor layer_mask to collision_layer
Diffstat (limited to 'scene/2d/ray_cast_2d.h')
-rw-r--r-- | scene/2d/ray_cast_2d.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scene/2d/ray_cast_2d.h b/scene/2d/ray_cast_2d.h index cfecfa2585..244f4302ad 100644 --- a/scene/2d/ray_cast_2d.h +++ b/scene/2d/ray_cast_2d.h @@ -43,7 +43,7 @@ class RayCast2D : public Node2D { Vector2 collision_point; Vector2 collision_normal; Set<RID> exclude; - uint32_t layer_mask; + uint32_t collision_layer; uint32_t type_mask; bool exclude_parent_body; @@ -61,8 +61,8 @@ public: void set_cast_to(const Vector2 &p_point); Vector2 get_cast_to() const; - void set_layer_mask(uint32_t p_mask); - uint32_t get_layer_mask() const; + void set_collision_layer(uint32_t p_layer); + uint32_t get_collision_layer() const; void set_type_mask(uint32_t p_mask); uint32_t get_type_mask() const; |