diff options
| author | Biliogadafr | 2015-10-10 23:28:05 +0300 |
|---|---|---|
| committer | Biliogadafr | 2015-10-10 23:28:05 +0300 |
| commit | 2ffc90d8b4d3f420e57adefbc880183ac0635a7e (patch) | |
| tree | dbd4a99422f06de28f97538865086a5abcb3a6af /servers/physics_2d/joints_2d_sw.h | |
| parent | aad2bbdb6fb7c8217d7e75480b38e45f00cb3abd (diff) | |
| download | godot-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.h | 2 |
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(); |
