aboutsummaryrefslogtreecommitdiff
path: root/servers/physics_2d/joints_2d_sw.h
diff options
context:
space:
mode:
authorBiliogadafr2015-10-10 23:28:05 +0300
committerBiliogadafr2015-10-10 23:28:05 +0300
commit2ffc90d8b4d3f420e57adefbc880183ac0635a7e (patch)
treedbd4a99422f06de28f97538865086a5abcb3a6af /servers/physics_2d/joints_2d_sw.h
parentaad2bbdb6fb7c8217d7e75480b38e45f00cb3abd (diff)
downloadgodot-2ffc90d8b4d3f420e57adefbc880183ac0635a7e.tar.gz
godot-2ffc90d8b4d3f420e57adefbc880183ac0635a7e.tar.zst
godot-2ffc90d8b4d3f420e57adefbc880183ac0635a7e.zip
Expose softness parameter of pin joint to the editor.
Diffstat (limited to 'servers/physics_2d/joints_2d_sw.h')
-rw-r--r--servers/physics_2d/joints_2d_sw.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/servers/physics_2d/joints_2d_sw.h b/servers/physics_2d/joints_2d_sw.h
index 2093be88c..e43f8eee3 100644
--- a/servers/physics_2d/joints_2d_sw.h
+++ b/servers/physics_2d/joints_2d_sw.h
@@ -121,6 +121,8 @@ public:
virtual bool setup(float p_step);
virtual void solve(float p_step);
+ void set_param(Physics2DServer::PinJointParam p_param, real_t p_value);
+ real_t get_param(Physics2DServer::PinJointParam p_param) const;
PinJoint2DSW(const Vector2& p_pos,Body2DSW* p_body_a,Body2DSW* p_body_b=NULL);
~PinJoint2DSW();