Skip to content
0.2.0-dev Download ZIP
93 lines ·3.4 KB Raw
1<?xml version="1.0" encoding="UTF-8" ?>
2<class name="Skin" inherits="Resource" api_type="core" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd">
3 <brief_description>
4 A list of inverse bind poses and corresponding bones.
5 </brief_description>
6 <description>
7 [Skin] contains a list of bind pose matrices and a list of either bone names if bones are named, or bone indices if bones are not named. The bind pose matrix, also called offset matrix or inverse bind matrix, is a [Transform3D] offset that is multiplied with a bone's transform to get from vertex space to bone space.
8 </description>
9 <tutorials>
10 </tutorials>
11 <methods>
12 <method name="add_bind">
13 <return type="void" />
14 <param index="0" name="bone" type="int" />
15 <param index="1" name="pose" type="Transform3D" />
16 <description>
17 Adds a bind pose matrix of [param pose] and associated bone index [param bone] to the bind pose list and increases the bind count by 1.
18 </description>
19 </method>
20 <method name="add_named_bind">
21 <return type="void" />
22 <param index="0" name="name" type="String" />
23 <param index="1" name="pose" type="Transform3D" />
24 <description>
25 Like [method add_bind] but adds a bone [param name] instead of a bone index.
26 </description>
27 </method>
28 <method name="clear_binds">
29 <return type="void" />
30 <description>
31 Clears the bind pose list.
32 </description>
33 </method>
34 <method name="get_bind_bone" qualifiers="const">
35 <return type="int" />
36 <param index="0" name="bind_index" type="int" />
37 <description>
38 Returns the bone index associated with bind pose [param bind_index].
39 </description>
40 </method>
41 <method name="get_bind_count" qualifiers="const">
42 <return type="int" />
43 <description>
44 Returns the length of the bind pose list.
45 </description>
46 </method>
47 <method name="get_bind_name" qualifiers="const">
48 <return type="StringName" />
49 <param index="0" name="bind_index" type="int" />
50 <description>
51 Returns the bone name associated with bind pose [param bind_index].
52 </description>
53 </method>
54 <method name="get_bind_pose" qualifiers="const">
55 <return type="Transform3D" />
56 <param index="0" name="bind_index" type="int" />
57 <description>
58 Returns the bind pose matrix at [param bind_index].
59 </description>
60 </method>
61 <method name="set_bind_bone">
62 <return type="void" />
63 <param index="0" name="bind_index" type="int" />
64 <param index="1" name="bone" type="int" />
65 <description>
66 Sets the bone index of bind pose [param bind_index] to the given index [param bone].
67 </description>
68 </method>
69 <method name="set_bind_count">
70 <return type="void" />
71 <param index="0" name="bind_count" type="int" />
72 <description>
73 Resizes the bind pose list to a length of [param bind_count].
74 </description>
75 </method>
76 <method name="set_bind_name">
77 <return type="void" />
78 <param index="0" name="bind_index" type="int" />
79 <param index="1" name="name" type="StringName" />
80 <description>
81 Sets the name of the bone in bind pose [param bind_index] to [param name].
82 </description>
83 </method>
84 <method name="set_bind_pose">
85 <return type="void" />
86 <param index="0" name="bind_index" type="int" />
87 <param index="1" name="pose" type="Transform3D" />
88 <description>
89 Sets the bind pose [param bind_index] with the given offset matrix [param pose].
90 </description>
91 </method>
92 </methods>
93</class>