diff options
| author | Poommetee Ketson <poommetee@protonmail.com> | 2017-06-13 22:45:01 +0700 |
|---|---|---|
| committer | Poommetee Ketson <poommetee@protonmail.com> | 2017-06-14 10:58:34 +0700 |
| commit | 6c44fff5088d445d60ccd7109c8b5163a0764a7c (patch) | |
| tree | 74652a91d1e7b2a79da232482f21128013843823 /scene/2d/physics_body_2d.h | |
| parent | a8e845a474c01c4cde1416ed00e6ae456786c1fb (diff) | |
| download | redot-engine-6c44fff5088d445d60ccd7109c8b5163a0764a7c.tar.gz | |
Refactor layer_mask to collision_layer
Diffstat (limited to 'scene/2d/physics_body_2d.h')
| -rw-r--r-- | scene/2d/physics_body_2d.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scene/2d/physics_body_2d.h b/scene/2d/physics_body_2d.h index f706111e7e..50c9865f18 100644 --- a/scene/2d/physics_body_2d.h +++ b/scene/2d/physics_body_2d.h @@ -38,7 +38,7 @@ class PhysicsBody2D : public CollisionObject2D { GDCLASS(PhysicsBody2D, CollisionObject2D); - uint32_t mask; + uint32_t collision_layer; uint32_t collision_mask; Vector2 one_way_collision_direction; float one_way_collision_max_depth; @@ -53,7 +53,7 @@ protected: static void _bind_methods(); public: - void set_collision_layer(uint32_t p_mask); + void set_collision_layer(uint32_t p_layer); uint32_t get_collision_layer() const; void set_collision_mask(uint32_t p_mask); |
