|
31 | 31 | Finds a path constraint by comparing each path constraint's name. It is more efficient to cache the results of this method than to call it repeatedly. |
32 | 32 | </description> |
33 | 33 | </method> |
| 34 | + <method name="find_physics_constraint"> |
| 35 | + <return type="SpinePhysicsConstraint" /> |
| 36 | + <argument index="0" name="constraint_name" type="String" /> |
| 37 | + <description> |
| 38 | + Finds a physics constraint by comparing each physics constraint's name. It is more efficient to cache the results of this method than to call it repeatedly. |
| 39 | + </description> |
| 40 | + </method> |
34 | 41 | <method name="find_slot"> |
35 | 42 | <return type="SpineSlot" /> |
36 | 43 | <argument index="0" name="slot_name" type="String" /> |
37 | 44 | <description> |
38 | 45 | Finds a slot by comparing each slot's name. It is more efficient to cache the results of this method than to call it repeatedly. |
39 | 46 | </description> |
40 | 47 | </method> |
| 48 | + <method name="find_slider"> |
| 49 | + <return type="SpineSlider" /> |
| 50 | + <argument index="0" name="slider_name" type="String" /> |
| 51 | + <description> |
| 52 | + Finds a slider by comparing each slider's name. It is more efficient to cache the results of this method than to call it repeatedly. |
| 53 | + </description> |
| 54 | + </method> |
41 | 55 | <method name="find_transform_constraint"> |
42 | 56 | <return type="SpineTransformConstraint" /> |
43 | 57 | <argument index="0" name="constraint_name" type="String" /> |
|
131 | 145 | The skeleton's current skin. |
132 | 146 | </description> |
133 | 147 | </method> |
| 148 | + <method name="get_sliders"> |
| 149 | + <return type="Array" /> |
| 150 | + <description> |
| 151 | + The skeleton's sliders. Modifying the array has no effect. |
| 152 | + </description> |
| 153 | + </method> |
134 | 154 | <method name="get_slots"> |
135 | 155 | <return type="Array" /> |
136 | 156 | <description> |
137 | 157 | The skeleton's slots. Modifying the array has no effect. |
138 | 158 | </description> |
139 | 159 | </method> |
| 160 | + <method name="get_time"> |
| 161 | + <return type="float" /> |
| 162 | + <description> |
| 163 | + Returns the skeleton's current time. This is used to evaluate physics constraints. |
| 164 | + </description> |
| 165 | + </method> |
140 | 166 | <method name="get_transform_constraints"> |
141 | 167 | <return type="Array" /> |
142 | 168 | <description> |
|
146 | 172 | <method name="get_x"> |
147 | 173 | <return type="float" /> |
148 | 174 | <description> |
149 | | - Sets the skeleton X position, which is added to the root bone worldX position. Relative to the [code]SpineSprite[/code]. |
| 175 | + Returns the skeleton X position, which is added to the root bone worldX position. Relative to the [code]SpineSprite[/code]. |
150 | 176 | Bones that do not inherit translation are still affected by this property. |
151 | 177 | </description> |
152 | 178 | </method> |
153 | 179 | <method name="get_y"> |
154 | 180 | <return type="float" /> |
155 | 181 | <description> |
156 | | - Sets the skeleton Y position, which is added to the root bone worldX position. Relative to the [code]SpineSprite[/code]. |
| 182 | + Returns the skeleton Y position, which is added to the root bone worldY position. Relative to the [code]SpineSprite[/code]. |
157 | 183 | Bones that do not inherit translation are still affected by this property. |
158 | 184 | </description> |
159 | 185 | </method> |
| 186 | + <method name="physics_rotate"> |
| 187 | + <return type="void" /> |
| 188 | + <argument index="0" name="x" type="float" /> |
| 189 | + <argument index="1" name="y" type="float" /> |
| 190 | + <argument index="2" name="degrees" type="float" /> |
| 191 | + <description> |
| 192 | + Calls [code]PhysicsConstraint.rotate()[/code] for each physics constraint with the specified position and rotation. |
| 193 | + </description> |
| 194 | + </method> |
| 195 | + <method name="physics_translate"> |
| 196 | + <return type="void" /> |
| 197 | + <argument index="0" name="x" type="float" /> |
| 198 | + <argument index="1" name="y" type="float" /> |
| 199 | + <description> |
| 200 | + Calls [code]PhysicsConstraint.translate()[/code] for each physics constraint with the specified position. |
| 201 | + </description> |
| 202 | + </method> |
160 | 203 | <method name="set_attachment"> |
161 | 204 | <return type="void" /> |
162 | 205 | <argument index="0" name="slot_name" type="String" /> |
|
224 | 267 | Sets the slots and draw order to their setup pose values. |
225 | 268 | </description> |
226 | 269 | </method> |
| 270 | + <method name="set_time"> |
| 271 | + <return type="void" /> |
| 272 | + <argument index="0" name="time" type="float" /> |
| 273 | + <description> |
| 274 | + Sets the skeleton's current time. This is used to evaluate physics constraints. |
| 275 | + </description> |
| 276 | + </method> |
227 | 277 | <method name="set_to_setup_pose"> |
228 | 278 | <return type="void" /> |
229 | 279 | <description> |
|
242 | 292 | <return type="void" /> |
243 | 293 | <argument index="0" name="v" type="float" /> |
244 | 294 | <description> |
245 | | - Sets the skeleton Y position, which is added to the root bone worldX position. |
| 295 | + Sets the skeleton Y position, which is added to the root bone worldY position. |
246 | 296 | Bones that do not inherit translation are still affected by this property. |
247 | 297 | </description> |
248 | 298 | </method> |
| 299 | + <method name="update"> |
| 300 | + <return type="void" /> |
| 301 | + <argument index="0" name="delta" type="float" /> |
| 302 | + <description> |
| 303 | + Increments the skeleton's time and updates physics constraints. |
| 304 | + </description> |
| 305 | + </method> |
249 | 306 | <method name="update_world_transform"> |
250 | 307 | <return type="void" /> |
| 308 | + <argument index="0" name="physics" type="int" enum="SpineConstant.Physics" /> |
251 | 309 | <description> |
252 | 310 | Updates the world transform for each bone and applies all constraints. |
253 | 311 | See [url]http://esotericsoftware.com/spine-runtime-skeletons#World-transforms[/url] in the Spine Runtimes Guide. |
|
0 commit comments