Merge pull request #106321 from elzewyr/shrink-factor
SoftBody3D: Add a property for scaling rest lengths of edge constraints
This commit is contained in:
commit
05ceab6b7b
19 changed files with 126 additions and 0 deletions
|
|
@ -338,6 +338,9 @@ void PhysicsServer3DExtension::_bind_methods() {
|
|||
GDVIRTUAL_BIND(_soft_body_set_linear_stiffness, "body", "linear_stiffness");
|
||||
GDVIRTUAL_BIND(_soft_body_get_linear_stiffness, "body");
|
||||
|
||||
GDVIRTUAL_BIND(_soft_body_set_shrinking_factor, "body", "shrinking_factor");
|
||||
GDVIRTUAL_BIND(_soft_body_get_shrinking_factor, "body");
|
||||
|
||||
GDVIRTUAL_BIND(_soft_body_set_pressure_coefficient, "body", "pressure_coefficient");
|
||||
GDVIRTUAL_BIND(_soft_body_get_pressure_coefficient, "body");
|
||||
|
||||
|
|
|
|||
|
|
@ -445,6 +445,9 @@ public:
|
|||
EXBIND2(soft_body_set_linear_stiffness, RID, real_t)
|
||||
EXBIND1RC(real_t, soft_body_get_linear_stiffness, RID)
|
||||
|
||||
EXBIND2(soft_body_set_shrinking_factor, RID, real_t)
|
||||
EXBIND1RC(real_t, soft_body_get_shrinking_factor, RID)
|
||||
|
||||
EXBIND2(soft_body_set_pressure_coefficient, RID, real_t)
|
||||
EXBIND1RC(real_t, soft_body_get_pressure_coefficient, RID)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue