diff --git a/src/ik_bone_3d.cpp b/src/ik_bone_3d.cpp index 5e2a4fa7..562d29bd 100644 --- a/src/ik_bone_3d.cpp +++ b/src/ik_bone_3d.cpp @@ -322,3 +322,27 @@ void IKBone3D::pull_back_toward_allowable_region() { current_constraint->set_axes_to_returnfulled(get_bone_direction_transform(), get_ik_transform(), get_constraint_orientation_transform(), cos_half_return_damp, return_damp); } } + +Vector &IKBone3D::getCosHalfReturnfullnessDampened() { + return cos_half_returnfulness_dampened; +} + +void IKBone3D::setCosHalfReturnfullnessDampened(const Vector &value) { + cos_half_returnfulness_dampened = value; +} + +Vector &IKBone3D::getHalfReturnfullnessDampened() { + return half_returnfulness_dampened; +} + +void IKBone3D::setHalfReturnfullnessDampened(const Vector &value) { + half_returnfulness_dampened = value; +} + +void IKBone3D::set_stiffness(double p_stiffness) { + stiffness = p_stiffness; +} + +double IKBone3D::get_stiffness() const { + return stiffness; +} diff --git a/src/ik_bone_3d.h b/src/ik_bone_3d.h index be799e4c..89fb2d20 100644 --- a/src/ik_bone_3d.h +++ b/src/ik_bone_3d.h @@ -75,28 +75,12 @@ class IKBone3D : public Resource { static void _bind_methods(); public: - Vector &getCosHalfReturnfullnessDampened() { - return cos_half_returnfulness_dampened; - } - - void setCosHalfReturnfullnessDampened(const Vector &value) { - cos_half_returnfulness_dampened = value; - } - - Vector &getHalfReturnfullnessDampened() { - return half_returnfulness_dampened; - } - - void setHalfReturnfullnessDampened(const Vector &value) { - half_returnfulness_dampened = value; - } - void set_stiffness(double p_stiffness) { - stiffness = p_stiffness; - } - - double get_stiffness() const { - return stiffness; - } + Vector &getCosHalfReturnfullnessDampened(); + void setCosHalfReturnfullnessDampened(const Vector &value); + Vector &getHalfReturnfullnessDampened(); + void setHalfReturnfullnessDampened(const Vector &value); + void set_stiffness(double p_stiffness); + double get_stiffness() const; void pull_back_toward_allowable_region(); bool is_axially_constrained(); bool is_orientationally_constrained();