summaryrefslogtreecommitdiff
path: root/scene/2d/physics_body_2d.h
diff options
context:
space:
mode:
authorAnton Yabchinskiy <arn@bestmx.ru>2015-01-14 23:17:15 +0300
committerAnton Yabchinskiy <arn@bestmx.ru>2015-01-14 23:17:15 +0300
commitd6998995b54fd4fed83eef9db3bbb45fa60565db (patch)
tree927e4e2441db1c62b3853d03f3ed4bb996881045 /scene/2d/physics_body_2d.h
parentb6c5cb1064eab63788060dc918d7fec53e57a532 (diff)
parent04af74596d070f062bd917b0364d87c57544f8d5 (diff)
Merge branch 'master' of github.com:okamstudio/godot
Conflicts: platform/x11/detect.py
Diffstat (limited to 'scene/2d/physics_body_2d.h')
-rw-r--r--scene/2d/physics_body_2d.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/scene/2d/physics_body_2d.h b/scene/2d/physics_body_2d.h
index 956999ce31..eed43c95be 100644
--- a/scene/2d/physics_body_2d.h
+++ b/scene/2d/physics_body_2d.h
@@ -39,6 +39,8 @@ class PhysicsBody2D : public CollisionObject2D {
OBJ_TYPE(PhysicsBody2D,CollisionObject2D);
uint32_t mask;
+ Vector2 one_way_collision_direction;
+ float one_way_collision_max_depth;
protected:
void _notification(int p_what);
@@ -53,6 +55,12 @@ public:
void add_collision_exception_with(Node* p_node); //must be physicsbody
void remove_collision_exception_with(Node* p_node);
+ void set_one_way_collision_direction(const Vector2& p_dir);
+ Vector2 get_one_way_collision_direction() const;
+
+ void set_one_way_collision_max_depth(float p_dir);
+ float get_one_way_collision_max_depth() const;
+
PhysicsBody2D();
};