summaryrefslogtreecommitdiff
path: root/scene/3d/skeleton.h
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2018-05-13 15:34:48 -0300
committerGitHub <noreply@github.com>2018-05-13 15:34:48 -0300
commitdc7060973c6a58fa8b6b1df726edc58b8f1d31c1 (patch)
tree10d681d1b6ce6f5adc230beaa8b75da796613fe2 /scene/3d/skeleton.h
parent2014bb485ae9a0c63569f71be9c83c3458e3e8e4 (diff)
parent5a0119f9e2c0c1dec78447b9ca4f085087dfa3d9 (diff)
Merge pull request #18764 from AndreaCatania/rag
Improved API to active / deactive ragdoll
Diffstat (limited to 'scene/3d/skeleton.h')
-rw-r--r--scene/3d/skeleton.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/scene/3d/skeleton.h b/scene/3d/skeleton.h
index f0e71c8b4f..dad11960a5 100644
--- a/scene/3d/skeleton.h
+++ b/scene/3d/skeleton.h
@@ -120,9 +120,11 @@ public:
// skeleton creation api
void add_bone(const String &p_name);
- int find_bone(String p_name) const;
+ int find_bone(const String &p_name) const;
String get_bone_name(int p_bone) const;
+ bool is_bone_parent_of(int p_bone_id, int p_parent_bone_id) const;
+
void set_bone_parent(int p_bone, int p_parent);
int get_bone_parent(int p_bone) const;
@@ -176,7 +178,8 @@ private:
void _rebuild_physical_bones_cache();
public:
- void physical_bones_simulation(bool start);
+ void physical_bones_stop_simulation();
+ void physical_bones_start_simulation_on(const Array &p_bones);
void physical_bones_add_collision_exception(RID p_exception);
void physical_bones_remove_collision_exception(RID p_exception);