diff options
author | Andrea Catania <info@andreacatania.com> | 2020-02-08 09:52:58 +0100 |
---|---|---|
committer | Andrea Catania <info@andreacatania.com> | 2020-02-08 09:52:58 +0100 |
commit | 374432d0744208751eb752226b9284f6d1e247fc (patch) | |
tree | 40da2bda7a78435cc529d897e8146a09c2129718 /scene/3d/skeleton.h | |
parent | 343b29a651429eb57bf5acf95a14e2ff1773ab88 (diff) |
Added feature to move physical bones with skeleton when not simulating physics
Diffstat (limited to 'scene/3d/skeleton.h')
-rw-r--r-- | scene/3d/skeleton.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scene/3d/skeleton.h b/scene/3d/skeleton.h index 056f70e22b..9599510850 100644 --- a/scene/3d/skeleton.h +++ b/scene/3d/skeleton.h @@ -115,6 +115,7 @@ private: } }; + bool animate_physical_bones; Vector<Bone> bones; Vector<int> process_order; bool process_order_dirty; @@ -199,6 +200,9 @@ public: #ifndef _3D_DISABLED // Physical bone API + void set_animate_physical_bones(bool p_animate); + bool get_animate_physical_bones() const; + void bind_physical_bone_to_bone(int p_bone, PhysicalBone *p_physical_bone); void unbind_physical_bone_from_bone(int p_bone); |