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_server.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 '')
| -rw-r--r-- | servers/physics_2d_server.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/servers/physics_2d_server.h b/servers/physics_2d_server.h index 2d70337dc..6845c7dfe 100644 --- a/servers/physics_2d_server.h +++ b/servers/physics_2d_server.h @@ -516,6 +516,13 @@ public: virtual RID groove_joint_create(const Vector2& p_a_groove1,const Vector2& p_a_groove2, const Vector2& p_b_anchor, RID p_body_a,RID p_body_b)=0; virtual RID damped_spring_joint_create(const Vector2& p_anchor_a,const Vector2& p_anchor_b,RID p_body_a,RID p_body_b=RID())=0; + enum PinJointParam { + PIN_JOINT_SOFTNESS + }; + + virtual void pin_joint_set_param(RID p_joint, PinJointParam p_param, real_t p_value)=0; + virtual real_t pin_joint_get_param(RID p_joint, PinJointParam p_param) const=0; + enum DampedStringParam { DAMPED_STRING_REST_LENGTH, DAMPED_STRING_STIFFNESS, |
