1#[cfg(feature = "root_motion-final_ik-iksolver-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::system::{
9 delegate::{Delegate, IDelegate},
10 multicastdelegate::{IMulticastDelegate, MulticastDelegate},
11 object::{IObject, Object},
12 };
13
14 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/root_motion/final_ik/iksolver/IKSolver_Bone.md"))]
15 #[::unity::class(namespace = "RootMotion.FinalIK", name = "IKSolver.Bone")]
16 #[parent(crate::root_motion::final_ik::iksolver::IKSolver_Point)]
17 pub struct IKSolver_Bone {
18 #[offset(84)]
19 #[rename(name = "length")]
20 pub length: f32,
21 #[offset(88)]
22 #[rename(name = "sqrMag")]
23 pub sqr_mag: f32,
24 #[offset(92)]
25 #[rename(name = "axis")]
26 pub axis: crate::unity_engine::vector3::Vector3,
27 #[offset(104)]
28 #[rename(name = "_rotationLimit")]
29 pub rotation_limit_field: crate::root_motion::final_ik::rotationlimit::RotationLimit,
30 #[offset(112)]
31 #[rename(name = "isLimited")]
32 pub is_limited: bool,
33 }
34
35 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/root_motion/final_ik/iksolver/IKSolver.md"))]
36 #[::unity::class(namespace = "RootMotion.FinalIK", name = "IKSolver")]
37 #[parent(crate::system::object::Object)]
38 pub struct IKSolver {
39 #[offset(16)]
40 #[rename(name = "executedInEditor")]
41 pub executed_in_editor: bool,
42 #[offset(20)]
43 #[rename(name = "IKPosition")]
44 pub ik_position_field: crate::unity_engine::vector3::Vector3,
45 #[offset(32)]
46 #[rename(name = "IKPositionWeight")]
47 pub ik_position_weight_field: f32,
48 #[offset(40)]
49 #[rename(name = "OnPreInitiate")]
50 pub on_pre_initiate: crate::root_motion::final_ik::iksolver::IKSolver_UpdateDelegate,
51 #[offset(48)]
52 #[rename(name = "OnPostInitiate")]
53 pub on_post_initiate: crate::root_motion::final_ik::iksolver::IKSolver_UpdateDelegate,
54 #[offset(56)]
55 #[rename(name = "OnPreUpdate")]
56 pub on_pre_update: crate::root_motion::final_ik::iksolver::IKSolver_UpdateDelegate,
57 #[offset(64)]
58 #[rename(name = "OnPostUpdate")]
59 pub on_post_update: crate::root_motion::final_ik::iksolver::IKSolver_UpdateDelegate,
60 #[offset(72)]
61 #[rename(name = "firstInitiation")]
62 pub first_initiation: bool,
63 #[offset(80)]
64 #[rename(name = "root")]
65 pub root: crate::unity_engine::transform::Transform,
66 }
67
68 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/root_motion/final_ik/iksolver/IKSolver_IterationDelegate.md"))]
69 #[::unity::class(namespace = "RootMotion.FinalIK", name = "IKSolver.IterationDelegate")]
70 #[parent(crate::system::multicastdelegate::MulticastDelegate)]
71 pub struct IKSolver_IterationDelegate {}
72
73 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/root_motion/final_ik/iksolver/IKSolver_Node.md"))]
74 #[::unity::class(namespace = "RootMotion.FinalIK", name = "IKSolver.Node")]
75 #[parent(crate::root_motion::final_ik::iksolver::IKSolver_Point)]
76 pub struct IKSolver_Node {
77 #[offset(84)]
78 #[rename(name = "length")]
79 pub length: f32,
80 #[offset(88)]
81 #[rename(name = "effectorPositionWeight")]
82 pub effector_position_weight: f32,
83 #[offset(92)]
84 #[rename(name = "effectorRotationWeight")]
85 pub effector_rotation_weight: f32,
86 #[offset(96)]
87 #[rename(name = "offset")]
88 pub offset: crate::unity_engine::vector3::Vector3,
89 }
90
91 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/root_motion/final_ik/iksolver/IKSolver_UpdateDelegate.md"))]
92 #[::unity::class(namespace = "RootMotion.FinalIK", name = "IKSolver.UpdateDelegate")]
93 #[parent(crate::system::multicastdelegate::MulticastDelegate)]
94 pub struct IKSolver_UpdateDelegate {}
95
96 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/root_motion/final_ik/iksolver/IKSolver_Point.md"))]
97 #[::unity::class(namespace = "RootMotion.FinalIK", name = "IKSolver.Point")]
98 #[parent(crate::system::object::Object)]
99 pub struct IKSolver_Point {
100 #[offset(16)]
101 #[rename(name = "transform")]
102 pub transform: crate::unity_engine::transform::Transform,
103 #[offset(24)]
104 #[rename(name = "weight")]
105 pub weight: f32,
106 #[offset(28)]
107 #[rename(name = "solverPosition")]
108 pub solver_position: crate::unity_engine::vector3::Vector3,
109 #[offset(40)]
110 #[rename(name = "solverRotation")]
111 pub solver_rotation: crate::unity_engine::quaternion::Quaternion,
112 #[offset(56)]
113 #[rename(name = "defaultLocalPosition")]
114 pub default_local_position: crate::unity_engine::vector3::Vector3,
115 #[offset(68)]
116 #[rename(name = "defaultLocalRotation")]
117 pub default_local_rotation: crate::unity_engine::quaternion::Quaternion,
118 }
119}
120
121#[cfg(feature = "root_motion-final_ik-iksolver-types")]
122pub use __types::*;
123
124#[cfg(feature = "root_motion-final_ik-iksolver")]
125impl IKSolver_Bone {
126 #[doc = "`SolverSwing(::unity::Array<crate::root_motion::final_ik::iksolver::IKSolver_Bone>, i32, crate::unity_engine::vector3::Vector3, f32)` overload"]
127 pub fn solver_swing(
128 bones: impl ::core::convert::Into<::unity::Array<crate::root_motion::final_ik::iksolver::IKSolver_Bone>>,
129 index: impl ::core::convert::Into<i32>,
130 swing_target: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>,
131 weight: impl ::core::convert::Into<f32>,
132 ) -> () {
133 unsafe {
134 ::unity::il2cpp_call!((::unity::module_base()+0x2af1310usize)as*mut u8,();
135(::unity::Array<crate::root_motion::final_ik::iksolver::IKSolver_Bone>)::core::convert::Into::into(bones),(i32)::core::convert::Into::into(index),(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(swing_target),(f32)::core::convert::Into::into(weight))
136 }
137 }
138}
139
140#[cfg(feature = "root_motion-final_ik-iksolver")]
141pub trait IIKSolver_BoneMethods: IIKSolver_Bone {
142 #[doc = "`get_rotationLimit()` overload"]
143 fn get_rotation_limit(self) -> crate::root_motion::final_ik::rotationlimit::RotationLimit {
144 unsafe {
145 let __receiver = <IKSolver_Bone as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
146 ::unity::il2cpp_call!((::unity::module_base()+0x2af1020usize)as*mut u8,crate::root_motion::final_ik::rotationlimit::RotationLimit;
147(IKSolver_Bone)__receiver)
148 }
149 }
150 #[doc = "`set_rotationLimit(crate::root_motion::final_ik::rotationlimit::RotationLimit)` overload"]
151 fn set_rotation_limit(self, value: impl ::core::convert::Into<crate::root_motion::final_ik::rotationlimit::RotationLimit>) -> () {
152 unsafe {
153 let __receiver = <IKSolver_Bone as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
154 ::unity::il2cpp_call!((::unity::module_base()+0x2af1130usize)as*mut u8,();
155(IKSolver_Bone)__receiver,(crate::root_motion::final_ik::rotationlimit::RotationLimit)::core::convert::Into::into(value))
156 }
157 }
158 #[doc = "`Swing(crate::unity_engine::vector3::Vector3, f32)` overload"]
159 fn swing(self, swing_target: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>, weight: impl ::core::convert::Into<f32>) -> () {
160 unsafe {
161 let __receiver = <IKSolver_Bone as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
162 ::unity::il2cpp_call!((::unity::module_base()+0x2af11c0usize)as*mut u8,();
163(IKSolver_Bone)__receiver,(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(swing_target),(f32)::core::convert::Into::into(weight))
164 }
165 }
166 #[doc = "`Swing2D(crate::unity_engine::vector3::Vector3, f32)` overload"]
167 fn swing2_d(
168 self,
169 swing_target: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>,
170 weight: impl ::core::convert::Into<f32>,
171 ) -> () {
172 unsafe {
173 let __receiver = <IKSolver_Bone as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
174 ::unity::il2cpp_call!((::unity::module_base()+0x2af14d0usize)as*mut u8,();
175(IKSolver_Bone)__receiver,(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(swing_target),(f32)::core::convert::Into::into(weight))
176 }
177 }
178 #[doc = "`SetToSolverPosition()` overload"]
179 fn set_to_solver_position(self) -> () {
180 unsafe {
181 let __receiver = <IKSolver_Bone as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
182 ::unity::il2cpp_call!((::unity::module_base()+0x2af1610usize)as*mut u8,();
183(IKSolver_Bone)__receiver)
184 }
185 }
186 #[doc = "`.ctor()` overload"]
187 fn ctor(self) -> () {
188 unsafe {
189 let __receiver = <IKSolver_Bone as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
190 ::unity::il2cpp_call!((::unity::module_base()+0x2af1630usize)as*mut u8,();
191(IKSolver_Bone)__receiver)
192 }
193 }
194 #[doc = "`.ctor(crate::unity_engine::transform::Transform)` overload"]
195 fn ctor_2(self, transform: impl ::core::convert::Into<crate::unity_engine::transform::Transform>) -> () {
196 unsafe {
197 let __receiver = <IKSolver_Bone as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
198 ::unity::il2cpp_call!((::unity::module_base()+0x2af16f0usize)as*mut u8,();
199(IKSolver_Bone)__receiver,(crate::unity_engine::transform::Transform)::core::convert::Into::into(transform))
200 }
201 }
202 #[doc = "`.ctor(crate::unity_engine::transform::Transform, f32)` overload"]
203 fn ctor_3(self, transform: impl ::core::convert::Into<crate::unity_engine::transform::Transform>, weight: impl ::core::convert::Into<f32>) -> () {
204 unsafe {
205 let __receiver = <IKSolver_Bone as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
206 ::unity::il2cpp_call!((::unity::module_base()+0x2af1770usize)as*mut u8,();
207(IKSolver_Bone)__receiver,(crate::unity_engine::transform::Transform)::core::convert::Into::into(transform),(f32)::core::convert::Into::into(weight))
208 }
209 }
210}
211
212#[cfg(feature = "root_motion-final_ik-iksolver")]
213impl<__T: IIKSolver_Bone> IIKSolver_BoneMethods for __T {}
214
215#[cfg(feature = "root_motion-final_ik-iksolver")]
216impl IKSolver_Bone {
217 pub fn get_rotation_limit_method_info() -> &'static ::unity::il2cpp::MethodInfo {
218 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
219 }
220
221 pub fn set_rotation_limit_method_info() -> &'static ::unity::il2cpp::MethodInfo {
222 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
223 }
224
225 pub fn swing_method_info() -> &'static ::unity::il2cpp::MethodInfo {
226 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
227 }
228
229 pub fn solver_swing_method_info() -> &'static ::unity::il2cpp::MethodInfo {
230 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
231 }
232
233 pub fn swing2_d_method_info() -> &'static ::unity::il2cpp::MethodInfo {
234 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
235 }
236
237 pub fn set_to_solver_position_method_info() -> &'static ::unity::il2cpp::MethodInfo {
238 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
239 }
240
241 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
242 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
243 }
244
245 pub fn ctor_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
246 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
247 }
248
249 pub fn ctor_3_method_info() -> &'static ::unity::il2cpp::MethodInfo {
250 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
251 }
252}
253
254#[cfg(feature = "root_motion-final_ik-iksolver")]
255impl IKSolver_Bone {
256 #[doc = "`.ctor()` — no args"]
257 pub fn new() -> Self {
258 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
259 panic!(
260 "{}
261::{}
262 failed to instantiate",
263 ::core::stringify!(IKSolver_Bone),
264 ::core::stringify!(new),
265 )
266 });
267 <Self as IIKSolver_BoneMethods>::ctor(this);
268 this
269 }
270
271 #[doc = "`.ctor(crate::unity_engine::transform::Transform)` — overload selector"]
272 pub fn new_2(transform: crate::unity_engine::transform::Transform) -> Self {
273 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
274 panic!(
275 "{}
276::{}
277 failed to instantiate",
278 ::core::stringify!(IKSolver_Bone),
279 ::core::stringify!(new_2),
280 )
281 });
282 <Self as IIKSolver_BoneMethods>::ctor_2(this, transform);
283 this
284 }
285
286 #[doc = "`.ctor(crate::unity_engine::transform::Transform, f32)` — overload selector"]
287 pub fn new_3(transform: crate::unity_engine::transform::Transform, weight: f32) -> Self {
288 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
289 panic!(
290 "{}
291::{}
292 failed to instantiate",
293 ::core::stringify!(IKSolver_Bone),
294 ::core::stringify!(new_3),
295 )
296 });
297 <Self as IIKSolver_BoneMethods>::ctor_3(this, transform, weight);
298 this
299 }
300}
301
302#[cfg(feature = "root_motion-final_ik-iksolver")]
303impl IKSolver {
304 #[doc = "`ContainsDuplicateBone(::unity::Array<crate::root_motion::final_ik::iksolver::IKSolver_Bone>)` overload"]
305 pub fn contains_duplicate_bone(
306 bones: impl ::core::convert::Into<::unity::Array<crate::root_motion::final_ik::iksolver::IKSolver_Bone>>,
307 ) -> crate::unity_engine::transform::Transform {
308 unsafe {
309 ::unity::il2cpp_call!((::unity::module_base()+0x3c264b0usize)as*mut u8,crate::unity_engine::transform::Transform;
310(::unity::Array<crate::root_motion::final_ik::iksolver::IKSolver_Bone>)::core::convert::Into::into(bones))
311 }
312 }
313
314 #[doc = "`HierarchyIsValid(::unity::Array<crate::root_motion::final_ik::iksolver::IKSolver_Bone>)` overload"]
315 pub fn hierarchy_is_valid(bones: impl ::core::convert::Into<::unity::Array<crate::root_motion::final_ik::iksolver::IKSolver_Bone>>) -> bool {
316 unsafe {
317 ::unity::il2cpp_call!((::unity::module_base()+0x3c265e0usize)as*mut u8,bool;
318(::unity::Array<crate::root_motion::final_ik::iksolver::IKSolver_Bone>)::core::convert::Into::into(bones))
319 }
320 }
321
322 #[doc = "`PreSolveBones(*mut::unity::Array<crate::root_motion::final_ik::iksolver::IKSolver_Bone>)` overload"]
323 pub fn pre_solve_bones() -> (f32, ::unity::Array<crate::root_motion::final_ik::iksolver::IKSolver_Bone>) {
324 unsafe {
325 let mut __out_0 = ::core::mem::MaybeUninit::<::unity::Array<crate::root_motion::final_ik::iksolver::IKSolver_Bone>>::uninit();
326 let __ret = {
327 ::unity::il2cpp_call!((::unity::module_base()+0x3c26690usize)as*mut u8,f32;
328(*mut::unity::Array<crate::root_motion::final_ik::iksolver::IKSolver_Bone>)__out_0.as_mut_ptr())
329 };
330 (__ret, __out_0.assume_init())
331 }
332 }
333}
334
335#[cfg(feature = "root_motion-final_ik-iksolver")]
336pub trait IIKSolverMethods: IIKSolver {
337 #[doc = "`IsValid()` overload"]
338 fn is_valid(self) -> bool {
339 unsafe {
340 let __receiver = <IKSolver as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
341 ::unity::il2cpp_call!((::unity::module_base()+0x3c261b0usize)as*mut u8,bool;
342(IKSolver)__receiver)
343 }
344 }
345 #[doc = "`IsValid(*mut::unity::Il2CppString)` overload"]
346 fn is_valid_2(self) -> (bool, ::unity::Il2CppString) {
347 unsafe {
348 let __receiver = <IKSolver as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
349 let mut __out_0 = ::core::mem::MaybeUninit::<::unity::Il2CppString>::uninit();
350 let __ret = {
351 {
352 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
353 let __vi = *__vt.get(4usize).unwrap_or_else(|| {
354 panic!(
355 "unity: virtual slot {}
356 out of range (vtable len {}
357) on the runtime class behind {}
358 (method `{}
359`)",
360 4usize,
361 __vt.len(),
362 <IKSolver as ::unity::ClassIdentity>::NAME,
363 "IsValid",
364 )
365 });
366 let __inner: extern "C" fn(IKSolver, *mut ::unity::Il2CppString, ::unity::OptionalMethod) -> bool =
367 ::core::mem::transmute(__vi.method_ptr);
368 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
369 __inner(__receiver, __out_0.as_mut_ptr(), __mi)
370 }
371 };
372 (__ret, __out_0.assume_init())
373 }
374 }
375 #[doc = "`Initiate(crate::unity_engine::transform::Transform)` overload"]
376 fn initiate(self, root: impl ::core::convert::Into<crate::unity_engine::transform::Transform>) -> () {
377 unsafe {
378 let __receiver = <IKSolver as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
379 ::unity::il2cpp_call!((::unity::module_base()+0x3c26230usize)as*mut u8,();
380(IKSolver)__receiver,(crate::unity_engine::transform::Transform)::core::convert::Into::into(root))
381 }
382 }
383 #[doc = "`Update()` overload"]
384 fn update(self) -> () {
385 unsafe {
386 let __receiver = <IKSolver as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
387 ::unity::il2cpp_call!((::unity::module_base()+0x3c26390usize)as*mut u8,();
388(IKSolver)__receiver)
389 }
390 }
391 #[doc = "`GetIKPosition()` overload"]
392 fn get_ik_position(self) -> crate::unity_engine::vector3::Vector3 {
393 unsafe {
394 let __receiver = <IKSolver as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
395 {
396 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
397 let __vi = *__vt.get(5usize).unwrap_or_else(|| {
398 panic!(
399 "unity: virtual slot {}
400 out of range (vtable len {}
401) on the runtime class behind {}
402 (method `{}
403`)",
404 5usize,
405 __vt.len(),
406 <IKSolver as ::unity::ClassIdentity>::NAME,
407 "GetIKPosition",
408 )
409 });
410 let __inner: extern "C" fn(IKSolver, ::unity::OptionalMethod) -> crate::unity_engine::vector3::Vector3 =
411 ::core::mem::transmute(__vi.method_ptr);
412 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
413 __inner(__receiver, __mi)
414 }
415 }
416 }
417 #[doc = "`SetIKPosition(crate::unity_engine::vector3::Vector3)` overload"]
418 fn set_ik_position(self, position: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>) -> () {
419 unsafe {
420 let __receiver = <IKSolver as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
421 ::unity::il2cpp_call!((::unity::module_base()+0x3c26410usize)as*mut u8,();
422(IKSolver)__receiver,(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(position))
423 }
424 }
425 #[doc = "`GetIKPositionWeight()` overload"]
426 fn get_ik_position_weight(self) -> f32 {
427 unsafe {
428 let __receiver = <IKSolver as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
429 ::unity::il2cpp_call!((::unity::module_base()+0x3c26420usize)as*mut u8,f32;
430(IKSolver)__receiver)
431 }
432 }
433 #[doc = "`SetIKPositionWeight(f32)` overload"]
434 fn set_ik_position_weight(self, weight: impl ::core::convert::Into<f32>) -> () {
435 unsafe {
436 let __receiver = <IKSolver as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
437 ::unity::il2cpp_call!((::unity::module_base()+0x3c26430usize)as*mut u8,();
438(IKSolver)__receiver,(f32)::core::convert::Into::into(weight))
439 }
440 }
441 #[doc = "`GetRoot()` overload"]
442 fn get_root(self) -> crate::unity_engine::transform::Transform {
443 unsafe {
444 let __receiver = <IKSolver as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
445 ::unity::il2cpp_call!((::unity::module_base()+0x3c26460usize)as*mut u8,crate::unity_engine::transform::Transform;
446(IKSolver)__receiver)
447 }
448 }
449 #[doc = "`get_initiated()` overload"]
450 fn get_initiated(self) -> bool {
451 unsafe {
452 let __receiver = <IKSolver as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
453 ::unity::il2cpp_call!((::unity::module_base()+0x3c26470usize)as*mut u8,bool;
454(IKSolver)__receiver)
455 }
456 }
457 #[doc = "`set_initiated(bool)` overload"]
458 fn set_initiated(self, value: impl ::core::convert::Into<bool>) -> () {
459 unsafe {
460 let __receiver = <IKSolver as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
461 ::unity::il2cpp_call!((::unity::module_base()+0x3c26480usize)as*mut u8,();
462(IKSolver)__receiver,(bool)::core::convert::Into::into(value))
463 }
464 }
465 #[doc = "`GetPoints()` overload"]
466 fn get_points(self) -> ::unity::Array<crate::root_motion::final_ik::iksolver::IKSolver_Point> {
467 unsafe {
468 let __receiver = <IKSolver as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
469 {
470 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
471 let __vi = *__vt.get(6usize).unwrap_or_else(|| {
472 panic!(
473 "unity: virtual slot {}
474 out of range (vtable len {}
475) on the runtime class behind {}
476 (method `{}
477`)",
478 6usize,
479 __vt.len(),
480 <IKSolver as ::unity::ClassIdentity>::NAME,
481 "GetPoints",
482 )
483 });
484 let __inner: extern "C" fn(
485 IKSolver,
486 ::unity::OptionalMethod,
487 ) -> ::unity::Array<crate::root_motion::final_ik::iksolver::IKSolver_Point> = ::core::mem::transmute(__vi.method_ptr);
488 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
489 __inner(__receiver, __mi)
490 }
491 }
492 }
493 #[doc = "`GetPoint(crate::unity_engine::transform::Transform)` overload"]
494 fn get_point(
495 self,
496 transform: impl ::core::convert::Into<crate::unity_engine::transform::Transform>,
497 ) -> crate::root_motion::final_ik::iksolver::IKSolver_Point {
498 unsafe {
499 let __receiver = <IKSolver as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
500 {
501 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
502 let __vi = *__vt.get(7usize).unwrap_or_else(|| {
503 panic!(
504 "unity: virtual slot {}
505 out of range (vtable len {}
506) on the runtime class behind {}
507 (method `{}
508`)",
509 7usize,
510 __vt.len(),
511 <IKSolver as ::unity::ClassIdentity>::NAME,
512 "GetPoint",
513 )
514 });
515 let __inner: extern "C" fn(
516 IKSolver,
517 crate::unity_engine::transform::Transform,
518 ::unity::OptionalMethod,
519 ) -> crate::root_motion::final_ik::iksolver::IKSolver_Point = ::core::mem::transmute(__vi.method_ptr);
520 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
521 __inner(__receiver, ::core::convert::Into::into(transform), __mi)
522 }
523 }
524 }
525 #[doc = "`FixTransforms()` overload"]
526 fn fix_transforms(self) -> () {
527 unsafe {
528 let __receiver = <IKSolver as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
529 {
530 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
531 let __vi = *__vt.get(8usize).unwrap_or_else(|| {
532 panic!(
533 "unity: virtual slot {}
534 out of range (vtable len {}
535) on the runtime class behind {}
536 (method `{}
537`)",
538 8usize,
539 __vt.len(),
540 <IKSolver as ::unity::ClassIdentity>::NAME,
541 "FixTransforms",
542 )
543 });
544 let __inner: extern "C" fn(IKSolver, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
545 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
546 __inner(__receiver, __mi)
547 }
548 }
549 }
550 #[doc = "`StoreDefaultLocalState()` overload"]
551 fn store_default_local_state(self) -> () {
552 unsafe {
553 let __receiver = <IKSolver as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
554 {
555 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
556 let __vi = *__vt.get(9usize).unwrap_or_else(|| {
557 panic!(
558 "unity: virtual slot {}
559 out of range (vtable len {}
560) on the runtime class behind {}
561 (method `{}
562`)",
563 9usize,
564 __vt.len(),
565 <IKSolver as ::unity::ClassIdentity>::NAME,
566 "StoreDefaultLocalState",
567 )
568 });
569 let __inner: extern "C" fn(IKSolver, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
570 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
571 __inner(__receiver, __mi)
572 }
573 }
574 }
575 #[doc = "`OnInitiate()` overload"]
576 fn on_initiate(self) -> () {
577 unsafe {
578 let __receiver = <IKSolver as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
579 {
580 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
581 let __vi = *__vt.get(10usize).unwrap_or_else(|| {
582 panic!(
583 "unity: virtual slot {}
584 out of range (vtable len {}
585) on the runtime class behind {}
586 (method `{}
587`)",
588 10usize,
589 __vt.len(),
590 <IKSolver as ::unity::ClassIdentity>::NAME,
591 "OnInitiate",
592 )
593 });
594 let __inner: extern "C" fn(IKSolver, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
595 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
596 __inner(__receiver, __mi)
597 }
598 }
599 }
600 #[doc = "`OnUpdate()` overload"]
601 fn on_update(self) -> () {
602 unsafe {
603 let __receiver = <IKSolver as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
604 {
605 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
606 let __vi = *__vt.get(11usize).unwrap_or_else(|| {
607 panic!(
608 "unity: virtual slot {}
609 out of range (vtable len {}
610) on the runtime class behind {}
611 (method `{}
612`)",
613 11usize,
614 __vt.len(),
615 <IKSolver as ::unity::ClassIdentity>::NAME,
616 "OnUpdate",
617 )
618 });
619 let __inner: extern "C" fn(IKSolver, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
620 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
621 __inner(__receiver, __mi)
622 }
623 }
624 }
625 #[doc = "`LogWarning(::unity::Il2CppString)` overload"]
626 fn log_warning(self, message: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
627 unsafe {
628 let __receiver = <IKSolver as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
629 ::unity::il2cpp_call!((::unity::module_base()+0x3c26490usize)as*mut u8,();
630(IKSolver)__receiver,(::unity::Il2CppString)::core::convert::Into::into(message))
631 }
632 }
633 #[doc = "`.ctor()` overload"]
634 fn ctor(self) -> () {
635 unsafe {
636 let __receiver = <IKSolver as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
637 ::unity::il2cpp_call!((::unity::module_base()+0x3c268d0usize)as*mut u8,();
638(IKSolver)__receiver)
639 }
640 }
641}
642
643#[cfg(feature = "root_motion-final_ik-iksolver")]
644impl<__T: IIKSolver> IIKSolverMethods for __T {}
645
646#[cfg(feature = "root_motion-final_ik-iksolver")]
647impl IKSolver {
648 pub fn is_valid_method_info() -> &'static ::unity::il2cpp::MethodInfo {
649 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
650 }
651
652 pub fn is_valid_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
653 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
654 }
655
656 pub fn initiate_method_info() -> &'static ::unity::il2cpp::MethodInfo {
657 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
658 }
659
660 pub fn update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
661 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
662 }
663
664 pub fn get_ik_position_method_info() -> &'static ::unity::il2cpp::MethodInfo {
665 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
666 }
667
668 pub fn set_ik_position_method_info() -> &'static ::unity::il2cpp::MethodInfo {
669 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
670 }
671
672 pub fn get_ik_position_weight_method_info() -> &'static ::unity::il2cpp::MethodInfo {
673 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
674 }
675
676 pub fn set_ik_position_weight_method_info() -> &'static ::unity::il2cpp::MethodInfo {
677 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
678 }
679
680 pub fn get_root_method_info() -> &'static ::unity::il2cpp::MethodInfo {
681 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
682 }
683
684 pub fn get_initiated_method_info() -> &'static ::unity::il2cpp::MethodInfo {
685 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
686 }
687
688 pub fn set_initiated_method_info() -> &'static ::unity::il2cpp::MethodInfo {
689 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
690 }
691
692 pub fn get_points_method_info() -> &'static ::unity::il2cpp::MethodInfo {
693 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
694 }
695
696 pub fn get_point_method_info() -> &'static ::unity::il2cpp::MethodInfo {
697 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
698 }
699
700 pub fn fix_transforms_method_info() -> &'static ::unity::il2cpp::MethodInfo {
701 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
702 }
703
704 pub fn store_default_local_state_method_info() -> &'static ::unity::il2cpp::MethodInfo {
705 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
706 }
707
708 pub fn on_initiate_method_info() -> &'static ::unity::il2cpp::MethodInfo {
709 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
710 }
711
712 pub fn on_update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
713 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
714 }
715
716 pub fn log_warning_method_info() -> &'static ::unity::il2cpp::MethodInfo {
717 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
718 }
719
720 pub fn contains_duplicate_bone_method_info() -> &'static ::unity::il2cpp::MethodInfo {
721 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
722 }
723
724 pub fn hierarchy_is_valid_method_info() -> &'static ::unity::il2cpp::MethodInfo {
725 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[19]
726 }
727
728 pub fn pre_solve_bones_method_info() -> &'static ::unity::il2cpp::MethodInfo {
729 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[20]
730 }
731
732 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
733 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[21]
734 }
735}
736
737#[cfg(feature = "root_motion-final_ik-iksolver")]
738impl IKSolver {
739 #[doc = "Direct (non-virtual) call to `IKSolver`'s own `IsValid`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
740 pub unsafe fn is_valid_2(this: impl ::core::convert::Into<::unity::IlInstance>, message: *mut ::unity::Il2CppString) -> bool {
741 let __mi = Self::is_valid_2_method_info();
742 let __inner: extern "C" fn(::unity::IlInstance, *mut ::unity::Il2CppString, ::unity::OptionalMethod) -> bool =
743 ::core::mem::transmute(__mi.method_ptr);
744 __inner(this.into(), message, ::core::option::Option::None)
745 }
746
747 #[doc = "Direct (non-virtual) call to `IKSolver`'s own `GetIKPosition`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
748 pub unsafe fn get_ik_position(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::unity_engine::vector3::Vector3 {
749 let __mi = Self::get_ik_position_method_info();
750 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::unity_engine::vector3::Vector3 =
751 ::core::mem::transmute(__mi.method_ptr);
752 __inner(this.into(), ::core::option::Option::None)
753 }
754
755 #[doc = "Direct (non-virtual) call to `IKSolver`'s own `GetPoints`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
756 pub unsafe fn get_points(
757 this: impl ::core::convert::Into<::unity::IlInstance>,
758 ) -> ::unity::Array<crate::root_motion::final_ik::iksolver::IKSolver_Point> {
759 let __mi = Self::get_points_method_info();
760 let __inner: extern "C" fn(
761 ::unity::IlInstance,
762 ::unity::OptionalMethod,
763 ) -> ::unity::Array<crate::root_motion::final_ik::iksolver::IKSolver_Point> = ::core::mem::transmute(__mi.method_ptr);
764 __inner(this.into(), ::core::option::Option::None)
765 }
766
767 #[doc = "Direct (non-virtual) call to `IKSolver`'s own `GetPoint`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
768 pub unsafe fn get_point(
769 this: impl ::core::convert::Into<::unity::IlInstance>,
770 transform: crate::unity_engine::transform::Transform,
771 ) -> crate::root_motion::final_ik::iksolver::IKSolver_Point {
772 let __mi = Self::get_point_method_info();
773 let __inner: extern "C" fn(
774 ::unity::IlInstance,
775 crate::unity_engine::transform::Transform,
776 ::unity::OptionalMethod,
777 ) -> crate::root_motion::final_ik::iksolver::IKSolver_Point = ::core::mem::transmute(__mi.method_ptr);
778 __inner(this.into(), transform, ::core::option::Option::None)
779 }
780
781 #[doc = "Direct (non-virtual) call to `IKSolver`'s own `FixTransforms`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
782 pub unsafe fn fix_transforms(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
783 let __mi = Self::fix_transforms_method_info();
784 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
785 __inner(this.into(), ::core::option::Option::None)
786 }
787
788 #[doc = "Direct (non-virtual) call to `IKSolver`'s own `StoreDefaultLocalState`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
789 pub unsafe fn store_default_local_state(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
790 let __mi = Self::store_default_local_state_method_info();
791 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
792 __inner(this.into(), ::core::option::Option::None)
793 }
794
795 #[doc = "Direct (non-virtual) call to `IKSolver`'s own `OnInitiate`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
796 pub unsafe fn on_initiate(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
797 let __mi = Self::on_initiate_method_info();
798 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
799 __inner(this.into(), ::core::option::Option::None)
800 }
801
802 #[doc = "Direct (non-virtual) call to `IKSolver`'s own `OnUpdate`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
803 pub unsafe fn on_update(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
804 let __mi = Self::on_update_method_info();
805 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
806 __inner(this.into(), ::core::option::Option::None)
807 }
808}
809
810#[cfg(feature = "root_motion-final_ik-iksolver")]
811impl IKSolver {
812 #[doc = "`.ctor()` — no args"]
813 pub fn new() -> Self {
814 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
815 panic!(
816 "{}
817::{}
818 failed to instantiate",
819 ::core::stringify!(IKSolver),
820 ::core::stringify!(new),
821 )
822 });
823 <Self as IIKSolverMethods>::ctor(this);
824 this
825 }
826}
827
828#[cfg(feature = "root_motion-final_ik-iksolver")]
829pub trait IIKSolver_IterationDelegateMethods: IIKSolver_IterationDelegate {
830 #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` overload"]
831 fn ctor(self, object: impl ::core::convert::Into<crate::system::object::Object>, method: impl ::core::convert::Into<::unity::IntPtr>) -> () {
832 unsafe {
833 let __receiver =
834 <IKSolver_IterationDelegate as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
835 ::unity::il2cpp_call!((::unity::module_base()+0x2af1810usize)as*mut u8,();
836(IKSolver_IterationDelegate)__receiver,(crate::system::object::Object)::core::convert::Into::into(object),(::unity::IntPtr)::core::convert::Into::into(method))
837 }
838 }
839 #[doc = "`Invoke(i32)` overload"]
840 fn invoke(self, i: impl ::core::convert::Into<i32>) -> () {
841 unsafe {
842 let __receiver =
843 <IKSolver_IterationDelegate as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
844 {
845 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
846 let __vi = *__vt.get(13usize).unwrap_or_else(|| {
847 panic!(
848 "unity: virtual slot {}
849 out of range (vtable len {}
850) on the runtime class behind {}
851 (method `{}
852`)",
853 13usize,
854 __vt.len(),
855 <IKSolver_IterationDelegate as ::unity::ClassIdentity>::NAME,
856 "Invoke",
857 )
858 });
859 let __inner: extern "C" fn(IKSolver_IterationDelegate, i32, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
860 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
861 __inner(__receiver, ::core::convert::Into::into(i), __mi)
862 }
863 }
864 }
865}
866
867#[cfg(feature = "root_motion-final_ik-iksolver")]
868impl<__T: IIKSolver_IterationDelegate> IIKSolver_IterationDelegateMethods for __T {}
869
870#[cfg(feature = "root_motion-final_ik-iksolver")]
871impl IKSolver_IterationDelegate {
872 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
873 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
874 }
875
876 pub fn invoke_method_info() -> &'static ::unity::il2cpp::MethodInfo {
877 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
878 }
879}
880
881#[cfg(feature = "root_motion-final_ik-iksolver")]
882impl IKSolver_IterationDelegate {
883 #[doc = "Direct (non-virtual) call to `IKSolver_IterationDelegate`'s own `Invoke`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
884 pub unsafe fn invoke(this: impl ::core::convert::Into<::unity::IlInstance>, i: i32) -> () {
885 let __mi = Self::invoke_method_info();
886 let __inner: extern "C" fn(::unity::IlInstance, i32, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
887 __inner(this.into(), i, ::core::option::Option::None)
888 }
889}
890
891#[cfg(feature = "root_motion-final_ik-iksolver")]
892impl IKSolver_IterationDelegate {
893 #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` — overload selector"]
894 pub fn new(object: crate::system::object::Object, method: ::unity::IntPtr) -> Self {
895 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
896 panic!(
897 "{}
898::{}
899 failed to instantiate",
900 ::core::stringify!(IKSolver_IterationDelegate),
901 ::core::stringify!(new),
902 )
903 });
904 <Self as IIKSolver_IterationDelegateMethods>::ctor(this, object, method);
905 this
906 }
907}
908
909#[cfg(feature = "root_motion-final_ik-iksolver")]
910pub trait IIKSolver_NodeMethods: IIKSolver_Node {
911 #[doc = "`.ctor()` overload"]
912 fn ctor(self) -> () {
913 unsafe {
914 let __receiver = <IKSolver_Node as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
915 ::unity::il2cpp_call!((::unity::module_base()+0x2af1b00usize)as*mut u8,();
916(IKSolver_Node)__receiver)
917 }
918 }
919 #[doc = "`.ctor(crate::unity_engine::transform::Transform)` overload"]
920 fn ctor_2(self, transform: impl ::core::convert::Into<crate::unity_engine::transform::Transform>) -> () {
921 unsafe {
922 let __receiver = <IKSolver_Node as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
923 ::unity::il2cpp_call!((::unity::module_base()+0x2af1b50usize)as*mut u8,();
924(IKSolver_Node)__receiver,(crate::unity_engine::transform::Transform)::core::convert::Into::into(transform))
925 }
926 }
927 #[doc = "`.ctor(crate::unity_engine::transform::Transform, f32)` overload"]
928 fn ctor_3(self, transform: impl ::core::convert::Into<crate::unity_engine::transform::Transform>, weight: impl ::core::convert::Into<f32>) -> () {
929 unsafe {
930 let __receiver = <IKSolver_Node as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
931 ::unity::il2cpp_call!((::unity::module_base()+0x2af1bb0usize)as*mut u8,();
932(IKSolver_Node)__receiver,(crate::unity_engine::transform::Transform)::core::convert::Into::into(transform),(f32)::core::convert::Into::into(weight))
933 }
934 }
935}
936
937#[cfg(feature = "root_motion-final_ik-iksolver")]
938impl<__T: IIKSolver_Node> IIKSolver_NodeMethods for __T {}
939
940#[cfg(feature = "root_motion-final_ik-iksolver")]
941impl IKSolver_Node {
942 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
943 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
944 }
945
946 pub fn ctor_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
947 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
948 }
949
950 pub fn ctor_3_method_info() -> &'static ::unity::il2cpp::MethodInfo {
951 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
952 }
953}
954
955#[cfg(feature = "root_motion-final_ik-iksolver")]
956impl IKSolver_Node {
957 #[doc = "`.ctor()` — no args"]
958 pub fn new() -> Self {
959 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
960 panic!(
961 "{}
962::{}
963 failed to instantiate",
964 ::core::stringify!(IKSolver_Node),
965 ::core::stringify!(new),
966 )
967 });
968 <Self as IIKSolver_NodeMethods>::ctor(this);
969 this
970 }
971
972 #[doc = "`.ctor(crate::unity_engine::transform::Transform)` — overload selector"]
973 pub fn new_2(transform: crate::unity_engine::transform::Transform) -> Self {
974 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
975 panic!(
976 "{}
977::{}
978 failed to instantiate",
979 ::core::stringify!(IKSolver_Node),
980 ::core::stringify!(new_2),
981 )
982 });
983 <Self as IIKSolver_NodeMethods>::ctor_2(this, transform);
984 this
985 }
986
987 #[doc = "`.ctor(crate::unity_engine::transform::Transform, f32)` — overload selector"]
988 pub fn new_3(transform: crate::unity_engine::transform::Transform, weight: f32) -> Self {
989 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
990 panic!(
991 "{}
992::{}
993 failed to instantiate",
994 ::core::stringify!(IKSolver_Node),
995 ::core::stringify!(new_3),
996 )
997 });
998 <Self as IIKSolver_NodeMethods>::ctor_3(this, transform, weight);
999 this
1000 }
1001}
1002
1003#[cfg(feature = "root_motion-final_ik-iksolver")]
1004pub trait IIKSolver_UpdateDelegateMethods: IIKSolver_UpdateDelegate {
1005 #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` overload"]
1006 fn ctor(self, object: impl ::core::convert::Into<crate::system::object::Object>, method: impl ::core::convert::Into<::unity::IntPtr>) -> () {
1007 unsafe {
1008 let __receiver =
1009 <IKSolver_UpdateDelegate as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
1010 ::unity::il2cpp_call!((::unity::module_base()+0x2af1e20usize)as*mut u8,();
1011(IKSolver_UpdateDelegate)__receiver,(crate::system::object::Object)::core::convert::Into::into(object),(::unity::IntPtr)::core::convert::Into::into(method))
1012 }
1013 }
1014 #[doc = "`Invoke()` overload"]
1015 fn invoke(self) -> () {
1016 unsafe {
1017 let __receiver =
1018 <IKSolver_UpdateDelegate as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
1019 {
1020 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
1021 let __vi = *__vt.get(13usize).unwrap_or_else(|| {
1022 panic!(
1023 "unity: virtual slot {}
1024 out of range (vtable len {}
1025) on the runtime class behind {}
1026 (method `{}
1027`)",
1028 13usize,
1029 __vt.len(),
1030 <IKSolver_UpdateDelegate as ::unity::ClassIdentity>::NAME,
1031 "Invoke",
1032 )
1033 });
1034 let __inner: extern "C" fn(IKSolver_UpdateDelegate, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
1035 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
1036 __inner(__receiver, __mi)
1037 }
1038 }
1039 }
1040}
1041
1042#[cfg(feature = "root_motion-final_ik-iksolver")]
1043impl<__T: IIKSolver_UpdateDelegate> IIKSolver_UpdateDelegateMethods for __T {}
1044
1045#[cfg(feature = "root_motion-final_ik-iksolver")]
1046impl IKSolver_UpdateDelegate {
1047 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1048 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
1049 }
1050
1051 pub fn invoke_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1052 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
1053 }
1054}
1055
1056#[cfg(feature = "root_motion-final_ik-iksolver")]
1057impl IKSolver_UpdateDelegate {
1058 #[doc = "Direct (non-virtual) call to `IKSolver_UpdateDelegate`'s own `Invoke`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1059 pub unsafe fn invoke(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
1060 let __mi = Self::invoke_method_info();
1061 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
1062 __inner(this.into(), ::core::option::Option::None)
1063 }
1064}
1065
1066#[cfg(feature = "root_motion-final_ik-iksolver")]
1067impl IKSolver_UpdateDelegate {
1068 #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` — overload selector"]
1069 pub fn new(object: crate::system::object::Object, method: ::unity::IntPtr) -> Self {
1070 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
1071 panic!(
1072 "{}
1073::{}
1074 failed to instantiate",
1075 ::core::stringify!(IKSolver_UpdateDelegate),
1076 ::core::stringify!(new),
1077 )
1078 });
1079 <Self as IIKSolver_UpdateDelegateMethods>::ctor(this, object, method);
1080 this
1081 }
1082}
1083
1084#[cfg(feature = "root_motion-final_ik-iksolver")]
1085pub trait IIKSolver_PointMethods: IIKSolver_Point {
1086 #[doc = "`StoreDefaultLocalState()` overload"]
1087 fn store_default_local_state(self) -> () {
1088 unsafe {
1089 let __receiver = <IKSolver_Point as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
1090 ::unity::il2cpp_call!((::unity::module_base()+0x2af1c20usize)as*mut u8,();
1091(IKSolver_Point)__receiver)
1092 }
1093 }
1094 #[doc = "`FixTransform()` overload"]
1095 fn fix_transform(self) -> () {
1096 unsafe {
1097 let __receiver = <IKSolver_Point as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
1098 ::unity::il2cpp_call!((::unity::module_base()+0x2af1c70usize)as*mut u8,();
1099(IKSolver_Point)__receiver)
1100 }
1101 }
1102 #[doc = "`UpdateSolverPosition()` overload"]
1103 fn update_solver_position(self) -> () {
1104 unsafe {
1105 let __receiver = <IKSolver_Point as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
1106 ::unity::il2cpp_call!((::unity::module_base()+0x2af1d00usize)as*mut u8,();
1107(IKSolver_Point)__receiver)
1108 }
1109 }
1110 #[doc = "`UpdateSolverLocalPosition()` overload"]
1111 fn update_solver_local_position(self) -> () {
1112 unsafe {
1113 let __receiver = <IKSolver_Point as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
1114 ::unity::il2cpp_call!((::unity::module_base()+0x2af1d40usize)as*mut u8,();
1115(IKSolver_Point)__receiver)
1116 }
1117 }
1118 #[doc = "`UpdateSolverState()` overload"]
1119 fn update_solver_state(self) -> () {
1120 unsafe {
1121 let __receiver = <IKSolver_Point as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
1122 ::unity::il2cpp_call!((::unity::module_base()+0x2af1d80usize)as*mut u8,();
1123(IKSolver_Point)__receiver)
1124 }
1125 }
1126 #[doc = "`UpdateSolverLocalState()` overload"]
1127 fn update_solver_local_state(self) -> () {
1128 unsafe {
1129 let __receiver = <IKSolver_Point as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
1130 ::unity::il2cpp_call!((::unity::module_base()+0x2af1dd0usize)as*mut u8,();
1131(IKSolver_Point)__receiver)
1132 }
1133 }
1134 #[doc = "`.ctor()` overload"]
1135 fn ctor(self) -> () {
1136 unsafe {
1137 let __receiver = <IKSolver_Point as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
1138 ::unity::il2cpp_call!((::unity::module_base()+0x2af16a0usize)as*mut u8,();
1139(IKSolver_Point)__receiver)
1140 }
1141 }
1142}
1143
1144#[cfg(feature = "root_motion-final_ik-iksolver")]
1145impl<__T: IIKSolver_Point> IIKSolver_PointMethods for __T {}
1146
1147#[cfg(feature = "root_motion-final_ik-iksolver")]
1148impl IKSolver_Point {
1149 pub fn store_default_local_state_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1150 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
1151 }
1152
1153 pub fn fix_transform_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1154 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
1155 }
1156
1157 pub fn update_solver_position_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1158 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
1159 }
1160
1161 pub fn update_solver_local_position_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1162 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
1163 }
1164
1165 pub fn update_solver_state_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1166 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
1167 }
1168
1169 pub fn update_solver_local_state_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1170 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
1171 }
1172
1173 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1174 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
1175 }
1176}
1177
1178#[cfg(feature = "root_motion-final_ik-iksolver")]
1179impl IKSolver_Point {
1180 #[doc = "`.ctor()` — no args"]
1181 pub fn new() -> Self {
1182 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
1183 panic!(
1184 "{}
1185::{}
1186 failed to instantiate",
1187 ::core::stringify!(IKSolver_Point),
1188 ::core::stringify!(new),
1189 )
1190 });
1191 <Self as IIKSolver_PointMethods>::ctor(this);
1192 this
1193 }
1194}
1195
1196#[cfg(feature = "root_motion-final_ik-iksolver")]
1197#[doc(hidden)]
1198pub mod prelude {
1199 pub use super::{
1200 IIKSolver, IIKSolverMethods, IIKSolver_Bone, IIKSolver_BoneMethods, IIKSolver_IterationDelegate, IIKSolver_IterationDelegateMethods,
1201 IIKSolver_Node, IIKSolver_NodeMethods, IIKSolver_Point, IIKSolver_PointMethods, IIKSolver_UpdateDelegate, IIKSolver_UpdateDelegateMethods,
1202 IKSolver, IKSolver_Bone, IKSolver_IterationDelegate, IKSolver_Node, IKSolver_Point, IKSolver_UpdateDelegate,
1203 };
1204 #[cfg(feature = "system-delegate")]
1205 pub use crate::system::delegate::IDelegateMethods;
1206 #[cfg(feature = "system-multicastdelegate")]
1207 pub use crate::system::multicastdelegate::IMulticastDelegateMethods;
1208 #[cfg(feature = "system-object")]
1209 pub use crate::system::object::IObjectMethods;
1210 pub use crate::system::{delegate::IDelegate, multicastdelegate::IMulticastDelegate, object::IObject};
1211}