32 #include "scene/3d/spatial.h" 56 bool custom_pose_enable;
61 Bone() { parent=-1; enabled=
true; custom_pose_enable=
false; disable_rest=
false; }
64 bool rest_global_inverse_dirty;
74 Array _get_bound_child_nodes_to_bone(
int p_bone)
const {
78 get_bound_child_nodes_to_bone(p_bone,&childs);
80 for (
int i=0;i<childs.size();i++) {
82 bound.push_back( childs[i] );
87 virtual RES _get_gizmo_geometry()
const;
94 void _notification(
int p_what);
95 static void _bind_methods();
101 NOTIFICATION_UPDATE_SKELETON=50
105 RID get_skeleton()
const;
108 void add_bone(
const String&p_name);
109 int find_bone(
String p_name)
const;
110 String get_bone_name(
int p_bone)
const;
112 void set_bone_parent(
int p_bone,
int p_parent);
113 int get_bone_parent(
int p_bone)
const;
115 void unparent_bone_and_rest(
int p_idx);
117 void set_bone_disable_rest(
int p_bone,
bool p_disable);
118 bool is_bone_rest_disabled(
int p_bone)
const;
120 int get_bone_count()
const;
122 void set_bone_rest(
int p_bone,
const Transform& p_rest);
123 Transform get_bone_rest(
int p_bone)
const;
124 Transform get_bone_transform(
int p_bone)
const;
125 Transform get_bone_global_pose(
int p_bone)
const;
127 void set_bone_global_pose(
int p_bone,
const Transform& p_pose);
129 void set_bone_enabled(
int p_bone,
bool p_enabled);
130 bool is_bone_enabled(
int p_bone)
const;
132 void bind_child_node_to_bone(
int p_bone,
Node *p_node);
133 void unbind_child_node_from_bone(
int p_bone,
Node *p_node);
134 void get_bound_child_nodes_to_bone(
int p_bone,
List<Node*> *p_bound)
const;
140 void set_bone_pose(
int p_bone,
const Transform& p_pose);
141 Transform get_bone_pose(
int p_bone)
const;
143 void set_bone_custom_pose(
int p_bone,
const Transform& p_custom_pose);
144 Transform get_bone_custom_pose(
int p_bone)
const;
146 void localize_rests();
Definition: string_db.h:48
Definition: skeleton.h:38