summaryrefslogtreecommitdiff
path: root/scene/2d/physics_body_2d.h
diff options
context:
space:
mode:
Diffstat (limited to 'scene/2d/physics_body_2d.h')
-rw-r--r--scene/2d/physics_body_2d.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/scene/2d/physics_body_2d.h b/scene/2d/physics_body_2d.h
index 1319d2e4f0..7e3fd978a0 100644
--- a/scene/2d/physics_body_2d.h
+++ b/scene/2d/physics_body_2d.h
@@ -50,6 +50,9 @@ public:
void set_layer_mask(uint32_t p_mask);
uint32_t get_layer_mask() const;
+ void add_collision_exception_with(Node* p_node); //must be physicsbody
+ void remove_collision_exception_with(Node* p_node);
+
PhysicsBody2D();
};
@@ -119,7 +122,7 @@ private:
Vector2 linear_velocity;
real_t angular_velocity;
- bool active;
+ bool sleeping;
int max_contacts_reported;
@@ -206,8 +209,8 @@ public:
void set_use_custom_integrator(bool p_enable);
bool is_using_custom_integrator();
- void set_active(bool p_active);
- bool is_active() const;
+ void set_sleeping(bool p_sleeping);
+ bool is_sleeping() const;
void set_can_sleep(bool p_active);
bool is_able_to_sleep() const;