Skip to main content

engage/generated/root_motion/final_ik/
iksolverlookat.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "root_motion-final_ik-iksolverlookat-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        root_motion::final_ik::iksolver::{IIKSolver, IIKSolver_Bone, IIKSolver_Point, IKSolver, IKSolver_Bone, IKSolver_Point},
10        system::object::{IObject, Object},
11    };
12
13    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/root_motion/final_ik/iksolverlookat/IKSolverLookAt_LookAtBone.md"))]
14    #[::unity::class(namespace = "RootMotion.FinalIK", name = "IKSolverLookAt.LookAtBone")]
15    #[parent(crate::root_motion::final_ik::iksolver::IKSolver_Bone)]
16    pub struct IKSolverLookAt_LookAtBone {
17        #[offset(116)]
18        #[rename(name = "baseForwardOffsetEuler")]
19        pub base_forward_offset_euler: crate::unity_engine::vector3::Vector3,
20    }
21
22    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/root_motion/final_ik/iksolverlookat/IKSolverLookAt.md"))]
23    #[::unity::class(namespace = "RootMotion.FinalIK", name = "IKSolverLookAt")]
24    #[parent(crate::root_motion::final_ik::iksolver::IKSolver)]
25    pub struct IKSolverLookAt {
26        #[offset(88)]
27        #[rename(name = "target")]
28        pub target: crate::unity_engine::transform::Transform,
29        #[offset(96)]
30        #[rename(name = "spine")]
31        pub spine: ::unity::Array<crate::root_motion::final_ik::iksolverlookat::IKSolverLookAt_LookAtBone>,
32        #[offset(104)]
33        #[rename(name = "head")]
34        pub head: crate::root_motion::final_ik::iksolverlookat::IKSolverLookAt_LookAtBone,
35        #[offset(112)]
36        #[rename(name = "eyes")]
37        pub eyes: ::unity::Array<crate::root_motion::final_ik::iksolverlookat::IKSolverLookAt_LookAtBone>,
38        #[offset(120)]
39        #[rename(name = "bodyWeight")]
40        pub body_weight: f32,
41        #[offset(124)]
42        #[rename(name = "headWeight")]
43        pub head_weight: f32,
44        #[offset(128)]
45        #[rename(name = "eyesWeight")]
46        pub eyes_weight: f32,
47        #[offset(132)]
48        #[rename(name = "clampWeight")]
49        pub clamp_weight: f32,
50        #[offset(136)]
51        #[rename(name = "clampWeightHead")]
52        pub clamp_weight_head: f32,
53        #[offset(140)]
54        #[rename(name = "clampWeightEyes")]
55        pub clamp_weight_eyes: f32,
56        #[offset(144)]
57        #[rename(name = "clampSmoothing")]
58        pub clamp_smoothing: i32,
59        #[offset(152)]
60        #[rename(name = "spineWeightCurve")]
61        pub spine_weight_curve: crate::unity_engine::animationcurve::AnimationCurve,
62        #[offset(160)]
63        #[rename(name = "spineTargetOffset")]
64        pub spine_target_offset: crate::unity_engine::vector3::Vector3,
65        #[offset(176)]
66        #[rename(name = "spineForwards")]
67        pub spine_forwards: ::unity::Array<crate::unity_engine::vector3::Vector3>,
68        #[offset(184)]
69        #[rename(name = "headForwards")]
70        pub head_forwards: ::unity::Array<crate::unity_engine::vector3::Vector3>,
71        #[offset(192)]
72        #[rename(name = "eyeForward")]
73        pub eye_forward: ::unity::Array<crate::unity_engine::vector3::Vector3>,
74        #[offset(200)]
75        #[rename(name = "isDirty")]
76        pub is_dirty: bool,
77    }
78}
79
80#[cfg(feature = "root_motion-final_ik-iksolverlookat-types")]
81pub use __types::*;
82
83#[cfg(feature = "root_motion-final_ik-iksolverlookat")]
84pub trait IIKSolverLookAt_LookAtBoneMethods: IIKSolverLookAt_LookAtBone {
85    #[doc = "`.ctor()` overload"]
86    fn ctor(self) -> () {
87        unsafe {
88            let __receiver =
89                <IKSolverLookAt_LookAtBone as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
90            ::unity::il2cpp_call!((::unity::module_base()+0x2af2100usize)as*mut u8,();
91(IKSolverLookAt_LookAtBone)__receiver)
92        }
93    }
94    #[doc = "`.ctor(crate::unity_engine::transform::Transform)` overload"]
95    fn ctor_2(self, transform: impl ::core::convert::Into<crate::unity_engine::transform::Transform>) -> () {
96        unsafe {
97            let __receiver =
98                <IKSolverLookAt_LookAtBone as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
99            ::unity::il2cpp_call!((::unity::module_base()+0x2af2170usize)as*mut u8,();
100(IKSolverLookAt_LookAtBone)__receiver,(crate::unity_engine::transform::Transform)::core::convert::Into::into(transform))
101        }
102    }
103    #[doc = "`Initiate(crate::unity_engine::transform::Transform)` overload"]
104    fn initiate(self, root: impl ::core::convert::Into<crate::unity_engine::transform::Transform>) -> () {
105        unsafe {
106            let __receiver =
107                <IKSolverLookAt_LookAtBone as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
108            ::unity::il2cpp_call!((::unity::module_base()+0x2af21f0usize)as*mut u8,();
109(IKSolverLookAt_LookAtBone)__receiver,(crate::unity_engine::transform::Transform)::core::convert::Into::into(root))
110        }
111    }
112    #[doc = "`LookAt(crate::unity_engine::vector3::Vector3, f32)` overload"]
113    fn look_at(self, direction: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>, weight: impl ::core::convert::Into<f32>) -> () {
114        unsafe {
115            let __receiver =
116                <IKSolverLookAt_LookAtBone as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
117            ::unity::il2cpp_call!((::unity::module_base()+0x2af22e0usize)as*mut u8,();
118(IKSolverLookAt_LookAtBone)__receiver,(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(direction),(f32)::core::convert::Into::into(weight))
119        }
120    }
121    #[doc = "`get_forward()` overload"]
122    fn get_forward(self) -> crate::unity_engine::vector3::Vector3 {
123        unsafe {
124            let __receiver =
125                <IKSolverLookAt_LookAtBone as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
126            ::unity::il2cpp_call!((::unity::module_base()+0x2af2400usize)as*mut u8,crate::unity_engine::vector3::Vector3;
127(IKSolverLookAt_LookAtBone)__receiver)
128        }
129    }
130}
131
132#[cfg(feature = "root_motion-final_ik-iksolverlookat")]
133impl<__T: IIKSolverLookAt_LookAtBone> IIKSolverLookAt_LookAtBoneMethods for __T {}
134
135#[cfg(feature = "root_motion-final_ik-iksolverlookat")]
136impl IKSolverLookAt_LookAtBone {
137    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
138        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
139    }
140
141    pub fn ctor_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
142        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
143    }
144
145    pub fn initiate_method_info() -> &'static ::unity::il2cpp::MethodInfo {
146        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
147    }
148
149    pub fn look_at_method_info() -> &'static ::unity::il2cpp::MethodInfo {
150        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
151    }
152
153    pub fn get_forward_method_info() -> &'static ::unity::il2cpp::MethodInfo {
154        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
155    }
156}
157
158#[cfg(feature = "root_motion-final_ik-iksolverlookat")]
159impl IKSolverLookAt_LookAtBone {
160    #[doc = "`.ctor()` — no args"]
161    pub fn new() -> Self {
162        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
163            panic!(
164                "{}
165::{}
166 failed to instantiate",
167                ::core::stringify!(IKSolverLookAt_LookAtBone),
168                ::core::stringify!(new),
169            )
170        });
171        <Self as IIKSolverLookAt_LookAtBoneMethods>::ctor(this);
172        this
173    }
174
175    #[doc = "`.ctor(crate::unity_engine::transform::Transform)` — overload selector"]
176    pub fn new_2(transform: crate::unity_engine::transform::Transform) -> Self {
177        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
178            panic!(
179                "{}
180::{}
181 failed to instantiate",
182                ::core::stringify!(IKSolverLookAt_LookAtBone),
183                ::core::stringify!(new_2),
184            )
185        });
186        <Self as IIKSolverLookAt_LookAtBoneMethods>::ctor_2(this, transform);
187        this
188    }
189}
190
191#[cfg(feature = "root_motion-final_ik-iksolverlookat")]
192pub trait IIKSolverLookAtMethods: IIKSolverLookAt {
193    #[doc = "`SetLookAtWeight(f32)` overload"]
194    fn set_look_at_weight(self, weight: impl ::core::convert::Into<f32>) -> () {
195        unsafe {
196            let __receiver = <IKSolverLookAt as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
197            ::unity::il2cpp_call!((::unity::module_base()+0x3c33e10usize)as*mut u8,();
198(IKSolverLookAt)__receiver,(f32)::core::convert::Into::into(weight))
199        }
200    }
201    #[doc = "`SetLookAtWeight(f32, f32)` overload"]
202    fn set_look_at_weight_2(self, weight: impl ::core::convert::Into<f32>, body_weight: impl ::core::convert::Into<f32>) -> () {
203        unsafe {
204            let __receiver = <IKSolverLookAt as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
205            ::unity::il2cpp_call!((::unity::module_base()+0x3c33e40usize)as*mut u8,();
206(IKSolverLookAt)__receiver,(f32)::core::convert::Into::into(weight),(f32)::core::convert::Into::into(body_weight))
207        }
208    }
209    #[doc = "`SetLookAtWeight(f32, f32, f32)` overload"]
210    fn set_look_at_weight_3(
211        self,
212        weight: impl ::core::convert::Into<f32>,
213        body_weight: impl ::core::convert::Into<f32>,
214        head_weight: impl ::core::convert::Into<f32>,
215    ) -> () {
216        unsafe {
217            let __receiver = <IKSolverLookAt as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
218            ::unity::il2cpp_call!((::unity::module_base()+0x3c33eb0usize)as*mut u8,();
219(IKSolverLookAt)__receiver,(f32)::core::convert::Into::into(weight),(f32)::core::convert::Into::into(body_weight),(f32)::core::convert::Into::into(head_weight))
220        }
221    }
222    #[doc = "`SetLookAtWeight(f32, f32, f32, f32)` overload"]
223    fn set_look_at_weight_4(
224        self,
225        weight: impl ::core::convert::Into<f32>,
226        body_weight: impl ::core::convert::Into<f32>,
227        head_weight: impl ::core::convert::Into<f32>,
228        eyes_weight: impl ::core::convert::Into<f32>,
229    ) -> () {
230        unsafe {
231            let __receiver = <IKSolverLookAt as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
232            ::unity::il2cpp_call!((::unity::module_base()+0x3c33f30usize)as*mut u8,();
233(IKSolverLookAt)__receiver,(f32)::core::convert::Into::into(weight),(f32)::core::convert::Into::into(body_weight),(f32)::core::convert::Into::into(head_weight),(f32)::core::convert::Into::into(eyes_weight))
234        }
235    }
236    #[doc = "`SetLookAtWeight(f32, f32, f32, f32, f32)` overload"]
237    fn set_look_at_weight_5(
238        self,
239        weight: impl ::core::convert::Into<f32>,
240        body_weight: impl ::core::convert::Into<f32>,
241        head_weight: impl ::core::convert::Into<f32>,
242        eyes_weight: impl ::core::convert::Into<f32>,
243        clamp_weight: impl ::core::convert::Into<f32>,
244    ) -> () {
245        unsafe {
246            let __receiver = <IKSolverLookAt as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
247            ::unity::il2cpp_call!((::unity::module_base()+0x3c33fe0usize)as*mut u8,();
248(IKSolverLookAt)__receiver,(f32)::core::convert::Into::into(weight),(f32)::core::convert::Into::into(body_weight),(f32)::core::convert::Into::into(head_weight),(f32)::core::convert::Into::into(eyes_weight),(f32)::core::convert::Into::into(clamp_weight))
249        }
250    }
251    #[doc = "`SetLookAtWeight(f32, f32, f32, f32, f32, f32, f32)` overload"]
252    fn set_look_at_weight_6(
253        self,
254        weight: impl ::core::convert::Into<f32>,
255        body_weight: impl ::core::convert::Into<f32>,
256        head_weight: impl ::core::convert::Into<f32>,
257        eyes_weight: impl ::core::convert::Into<f32>,
258        clamp_weight: impl ::core::convert::Into<f32>,
259        clamp_weight_head: impl ::core::convert::Into<f32>,
260        clamp_weight_eyes: impl ::core::convert::Into<f32>,
261    ) -> () {
262        unsafe {
263            let __receiver = <IKSolverLookAt as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
264            ::unity::il2cpp_call!((::unity::module_base()+0x3c340b0usize)as*mut u8,();
265(IKSolverLookAt)__receiver,(f32)::core::convert::Into::into(weight),(f32)::core::convert::Into::into(body_weight),(f32)::core::convert::Into::into(head_weight),(f32)::core::convert::Into::into(eyes_weight),(f32)::core::convert::Into::into(clamp_weight),(f32)::core::convert::Into::into(clamp_weight_head),(f32)::core::convert::Into::into(clamp_weight_eyes))
266        }
267    }
268    #[doc = "`StoreDefaultLocalState()` overload"]
269    fn store_default_local_state(self) -> () {
270        unsafe {
271            let __receiver = <IKSolverLookAt as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
272            {
273                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
274                let __vi = *__vt.get(9usize).unwrap_or_else(|| {
275                    panic!(
276                        "unity: virtual slot {}
277 out of range (vtable len {}
278) on the runtime class behind {}
279 (method `{}
280`)",
281                        9usize,
282                        __vt.len(),
283                        <IKSolverLookAt as ::unity::ClassIdentity>::NAME,
284                        "StoreDefaultLocalState",
285                    )
286                });
287                let __inner: extern "C" fn(IKSolverLookAt, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
288                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
289                __inner(__receiver, __mi)
290            }
291        }
292    }
293    #[doc = "`SetDirty()` overload"]
294    fn set_dirty(self) -> () {
295        unsafe {
296            let __receiver = <IKSolverLookAt as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
297            ::unity::il2cpp_call!((::unity::module_base()+0x3c342e0usize)as*mut u8,();
298(IKSolverLookAt)__receiver)
299        }
300    }
301    #[doc = "`FixTransforms()` overload"]
302    fn fix_transforms(self) -> () {
303        unsafe {
304            let __receiver = <IKSolverLookAt as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
305            {
306                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
307                let __vi = *__vt.get(8usize).unwrap_or_else(|| {
308                    panic!(
309                        "unity: virtual slot {}
310 out of range (vtable len {}
311) on the runtime class behind {}
312 (method `{}
313`)",
314                        8usize,
315                        __vt.len(),
316                        <IKSolverLookAt as ::unity::ClassIdentity>::NAME,
317                        "FixTransforms",
318                    )
319                });
320                let __inner: extern "C" fn(IKSolverLookAt, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
321                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
322                __inner(__receiver, __mi)
323            }
324        }
325    }
326    #[doc = "`IsValid(*mut::unity::Il2CppString)` overload"]
327    fn is_valid(self) -> (bool, ::unity::Il2CppString) {
328        unsafe {
329            let __receiver = <IKSolverLookAt as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
330            let mut __out_0 = ::core::mem::MaybeUninit::<::unity::Il2CppString>::uninit();
331            let __ret = {
332                {
333                    let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
334                    let __vi = *__vt.get(4usize).unwrap_or_else(|| {
335                        panic!(
336                            "unity: virtual slot {}
337 out of range (vtable len {}
338) on the runtime class behind {}
339 (method `{}
340`)",
341                            4usize,
342                            __vt.len(),
343                            <IKSolverLookAt as ::unity::ClassIdentity>::NAME,
344                            "IsValid",
345                        )
346                    });
347                    let __inner: extern "C" fn(IKSolverLookAt, *mut ::unity::Il2CppString, ::unity::OptionalMethod) -> bool =
348                        ::core::mem::transmute(__vi.method_ptr);
349                    let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
350                    __inner(__receiver, __out_0.as_mut_ptr(), __mi)
351                }
352            };
353            (__ret, __out_0.assume_init())
354        }
355    }
356    #[doc = "`GetPoints()` overload"]
357    fn get_points(self) -> ::unity::Array<crate::root_motion::final_ik::iksolver::IKSolver_Point> {
358        unsafe {
359            let __receiver = <IKSolverLookAt as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
360            {
361                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
362                let __vi = *__vt.get(6usize).unwrap_or_else(|| {
363                    panic!(
364                        "unity: virtual slot {}
365 out of range (vtable len {}
366) on the runtime class behind {}
367 (method `{}
368`)",
369                        6usize,
370                        __vt.len(),
371                        <IKSolverLookAt as ::unity::ClassIdentity>::NAME,
372                        "GetPoints",
373                    )
374                });
375                let __inner: extern "C" fn(
376                    IKSolverLookAt,
377                    ::unity::OptionalMethod,
378                ) -> ::unity::Array<crate::root_motion::final_ik::iksolver::IKSolver_Point> = ::core::mem::transmute(__vi.method_ptr);
379                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
380                __inner(__receiver, __mi)
381            }
382        }
383    }
384    #[doc = "`GetPoint(crate::unity_engine::transform::Transform)` overload"]
385    fn get_point(
386        self,
387        transform: impl ::core::convert::Into<crate::unity_engine::transform::Transform>,
388    ) -> crate::root_motion::final_ik::iksolver::IKSolver_Point {
389        unsafe {
390            let __receiver = <IKSolverLookAt as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
391            {
392                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
393                let __vi = *__vt.get(7usize).unwrap_or_else(|| {
394                    panic!(
395                        "unity: virtual slot {}
396 out of range (vtable len {}
397) on the runtime class behind {}
398 (method `{}
399`)",
400                        7usize,
401                        __vt.len(),
402                        <IKSolverLookAt as ::unity::ClassIdentity>::NAME,
403                        "GetPoint",
404                    )
405                });
406                let __inner: extern "C" fn(
407                    IKSolverLookAt,
408                    crate::unity_engine::transform::Transform,
409                    ::unity::OptionalMethod,
410                ) -> crate::root_motion::final_ik::iksolver::IKSolver_Point = ::core::mem::transmute(__vi.method_ptr);
411                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
412                __inner(__receiver, ::core::convert::Into::into(transform), __mi)
413            }
414        }
415    }
416    #[doc = "`SetChain(::unity::Array<crate::unity_engine::transform::Transform>, crate::unity_engine::transform::Transform, ::unity::Array<crate::unity_engine::transform::Transform>, crate::unity_engine::transform::Transform)` overload"]
417    fn set_chain(
418        self,
419        spine: impl ::core::convert::Into<::unity::Array<crate::unity_engine::transform::Transform>>,
420        head: impl ::core::convert::Into<crate::unity_engine::transform::Transform>,
421        eyes: impl ::core::convert::Into<::unity::Array<crate::unity_engine::transform::Transform>>,
422        root: impl ::core::convert::Into<crate::unity_engine::transform::Transform>,
423    ) -> bool {
424        unsafe {
425            let __receiver = <IKSolverLookAt as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
426            ::unity::il2cpp_call!((::unity::module_base()+0x3c34ce0usize)as*mut u8,bool;
427(IKSolverLookAt)__receiver,(::unity::Array<crate::unity_engine::transform::Transform>)::core::convert::Into::into(spine),(crate::unity_engine::transform::Transform)::core::convert::Into::into(head),(::unity::Array<crate::unity_engine::transform::Transform>)::core::convert::Into::into(eyes),(crate::unity_engine::transform::Transform)::core::convert::Into::into(root))
428        }
429    }
430    #[doc = "`OnInitiate()` overload"]
431    fn on_initiate(self) -> () {
432        unsafe {
433            let __receiver = <IKSolverLookAt as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
434            {
435                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
436                let __vi = *__vt.get(10usize).unwrap_or_else(|| {
437                    panic!(
438                        "unity: virtual slot {}
439 out of range (vtable len {}
440) on the runtime class behind {}
441 (method `{}
442`)",
443                        10usize,
444                        __vt.len(),
445                        <IKSolverLookAt as ::unity::ClassIdentity>::NAME,
446                        "OnInitiate",
447                    )
448                });
449                let __inner: extern "C" fn(IKSolverLookAt, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
450                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
451                __inner(__receiver, __mi)
452            }
453        }
454    }
455    #[doc = "`OnUpdate()` overload"]
456    fn on_update(self) -> () {
457        unsafe {
458            let __receiver = <IKSolverLookAt as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
459            {
460                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
461                let __vi = *__vt.get(11usize).unwrap_or_else(|| {
462                    panic!(
463                        "unity: virtual slot {}
464 out of range (vtable len {}
465) on the runtime class behind {}
466 (method `{}
467`)",
468                        11usize,
469                        __vt.len(),
470                        <IKSolverLookAt as ::unity::ClassIdentity>::NAME,
471                        "OnUpdate",
472                    )
473                });
474                let __inner: extern "C" fn(IKSolverLookAt, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
475                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
476                __inner(__receiver, __mi)
477            }
478        }
479    }
480    #[doc = "`get_spineIsValid()` overload"]
481    fn get_spine_is_valid(self) -> bool {
482        unsafe {
483            let __receiver = <IKSolverLookAt as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
484            ::unity::il2cpp_call!((::unity::module_base()+0x3c34640usize)as*mut u8,bool;
485(IKSolverLookAt)__receiver)
486        }
487    }
488    #[doc = "`get_spineIsEmpty()` overload"]
489    fn get_spine_is_empty(self) -> bool {
490        unsafe {
491            let __receiver = <IKSolverLookAt as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
492            ::unity::il2cpp_call!((::unity::module_base()+0x3c34830usize)as*mut u8,bool;
493(IKSolverLookAt)__receiver)
494        }
495    }
496    #[doc = "`SolveSpine()` overload"]
497    fn solve_spine(self) -> () {
498        unsafe {
499            let __receiver = <IKSolverLookAt as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
500            ::unity::il2cpp_call!((::unity::module_base()+0x3c352f0usize)as*mut u8,();
501(IKSolverLookAt)__receiver)
502        }
503    }
504    #[doc = "`get_headIsValid()` overload"]
505    fn get_head_is_valid(self) -> bool {
506        unsafe {
507            let __receiver = <IKSolverLookAt as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
508            ::unity::il2cpp_call!((::unity::module_base()+0x3c34730usize)as*mut u8,bool;
509(IKSolverLookAt)__receiver)
510        }
511    }
512    #[doc = "`get_headIsEmpty()` overload"]
513    fn get_head_is_empty(self) -> bool {
514        unsafe {
515            let __receiver = <IKSolverLookAt as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
516            ::unity::il2cpp_call!((::unity::module_base()+0x3c34850usize)as*mut u8,bool;
517(IKSolverLookAt)__receiver)
518        }
519    }
520    #[doc = "`SolveHead()` overload"]
521    fn solve_head(self) -> () {
522        unsafe {
523            let __receiver = <IKSolverLookAt as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
524            ::unity::il2cpp_call!((::unity::module_base()+0x3c35470usize)as*mut u8,();
525(IKSolverLookAt)__receiver)
526        }
527    }
528    #[doc = "`get_eyesIsValid()` overload"]
529    fn get_eyes_is_valid(self) -> bool {
530        unsafe {
531            let __receiver = <IKSolverLookAt as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
532            ::unity::il2cpp_call!((::unity::module_base()+0x3c34740usize)as*mut u8,bool;
533(IKSolverLookAt)__receiver)
534        }
535    }
536    #[doc = "`get_eyesIsEmpty()` overload"]
537    fn get_eyes_is_empty(self) -> bool {
538        unsafe {
539            let __receiver = <IKSolverLookAt as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
540            ::unity::il2cpp_call!((::unity::module_base()+0x3c348d0usize)as*mut u8,bool;
541(IKSolverLookAt)__receiver)
542        }
543    }
544    #[doc = "`SolveEyes()` overload"]
545    fn solve_eyes(self) -> () {
546        unsafe {
547            let __receiver = <IKSolverLookAt as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
548            ::unity::il2cpp_call!((::unity::module_base()+0x3c356c0usize)as*mut u8,();
549(IKSolverLookAt)__receiver)
550        }
551    }
552    #[doc = "`GetForwards(*mut::unity::Array<crate::unity_engine::vector3::Vector3>, crate::unity_engine::vector3::Vector3, crate::unity_engine::vector3::Vector3, i32, f32)` overload"]
553    fn get_forwards(
554        self,
555        base_forward: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>,
556        target_forward: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>,
557        bones: impl ::core::convert::Into<i32>,
558        clamp: impl ::core::convert::Into<f32>,
559    ) -> (
560        ::unity::Array<crate::unity_engine::vector3::Vector3>,
561        ::unity::Array<crate::unity_engine::vector3::Vector3>,
562    ) {
563        unsafe {
564            let __receiver = <IKSolverLookAt as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
565            let mut __out_0 = ::core::mem::MaybeUninit::<::unity::Array<crate::unity_engine::vector3::Vector3>>::uninit();
566            let __ret = {
567                ::unity::il2cpp_call!((::unity::module_base()+0x3c35a30usize)as*mut u8, ::unity::Array<crate::unity_engine::vector3::Vector3> ;
568(IKSolverLookAt)__receiver,(*mut::unity::Array<crate::unity_engine::vector3::Vector3>)__out_0.as_mut_ptr(),(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(base_forward),(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(target_forward),(i32)::core::convert::Into::into(bones),(f32)::core::convert::Into::into(clamp))
569            };
570            (__ret, __out_0.assume_init())
571        }
572    }
573    #[doc = "`SetBones(::unity::Array<crate::unity_engine::transform::Transform>, *mut::unity::Array<crate::root_motion::final_ik::iksolverlookat::IKSolverLookAt_LookAtBone>)` overload"]
574    fn set_bones(
575        self,
576        array: impl ::core::convert::Into<::unity::Array<crate::unity_engine::transform::Transform>>,
577    ) -> ::unity::Array<crate::root_motion::final_ik::iksolverlookat::IKSolverLookAt_LookAtBone> {
578        unsafe {
579            let __receiver = <IKSolverLookAt as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
580            let mut __out_0 =
581                ::core::mem::MaybeUninit::<::unity::Array<crate::root_motion::final_ik::iksolverlookat::IKSolverLookAt_LookAtBone>>::uninit();
582            ::unity::il2cpp_call!((::unity::module_base()+0x3c34da0usize)as*mut u8,();
583(IKSolverLookAt)__receiver,(::unity::Array<crate::unity_engine::transform::Transform>)::core::convert::Into::into(array),(*mut::unity::Array<crate::root_motion::final_ik::iksolverlookat::IKSolverLookAt_LookAtBone>)__out_0.as_mut_ptr());
584            __out_0.assume_init()
585        }
586    }
587    #[doc = "`.ctor()` overload"]
588    fn ctor(self) -> () {
589        unsafe {
590            let __receiver = <IKSolverLookAt as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
591            ::unity::il2cpp_call!((::unity::module_base()+0x3c35ca0usize)as*mut u8,();
592(IKSolverLookAt)__receiver)
593        }
594    }
595}
596
597#[cfg(feature = "root_motion-final_ik-iksolverlookat")]
598impl<__T: IIKSolverLookAt> IIKSolverLookAtMethods for __T {}
599
600#[cfg(feature = "root_motion-final_ik-iksolverlookat")]
601impl IKSolverLookAt {
602    pub fn set_look_at_weight_method_info() -> &'static ::unity::il2cpp::MethodInfo {
603        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
604    }
605
606    pub fn set_look_at_weight_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
607        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
608    }
609
610    pub fn set_look_at_weight_3_method_info() -> &'static ::unity::il2cpp::MethodInfo {
611        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
612    }
613
614    pub fn set_look_at_weight_4_method_info() -> &'static ::unity::il2cpp::MethodInfo {
615        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
616    }
617
618    pub fn set_look_at_weight_5_method_info() -> &'static ::unity::il2cpp::MethodInfo {
619        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
620    }
621
622    pub fn set_look_at_weight_6_method_info() -> &'static ::unity::il2cpp::MethodInfo {
623        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
624    }
625
626    pub fn store_default_local_state_method_info() -> &'static ::unity::il2cpp::MethodInfo {
627        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
628    }
629
630    pub fn set_dirty_method_info() -> &'static ::unity::il2cpp::MethodInfo {
631        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
632    }
633
634    pub fn fix_transforms_method_info() -> &'static ::unity::il2cpp::MethodInfo {
635        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
636    }
637
638    pub fn is_valid_method_info() -> &'static ::unity::il2cpp::MethodInfo {
639        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
640    }
641
642    pub fn get_points_method_info() -> &'static ::unity::il2cpp::MethodInfo {
643        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
644    }
645
646    pub fn get_point_method_info() -> &'static ::unity::il2cpp::MethodInfo {
647        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
648    }
649
650    pub fn set_chain_method_info() -> &'static ::unity::il2cpp::MethodInfo {
651        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
652    }
653
654    pub fn on_initiate_method_info() -> &'static ::unity::il2cpp::MethodInfo {
655        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
656    }
657
658    pub fn on_update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
659        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
660    }
661
662    pub fn get_spine_is_valid_method_info() -> &'static ::unity::il2cpp::MethodInfo {
663        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
664    }
665
666    pub fn get_spine_is_empty_method_info() -> &'static ::unity::il2cpp::MethodInfo {
667        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
668    }
669
670    pub fn solve_spine_method_info() -> &'static ::unity::il2cpp::MethodInfo {
671        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
672    }
673
674    pub fn get_head_is_valid_method_info() -> &'static ::unity::il2cpp::MethodInfo {
675        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
676    }
677
678    pub fn get_head_is_empty_method_info() -> &'static ::unity::il2cpp::MethodInfo {
679        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[19]
680    }
681
682    pub fn solve_head_method_info() -> &'static ::unity::il2cpp::MethodInfo {
683        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[20]
684    }
685
686    pub fn get_eyes_is_valid_method_info() -> &'static ::unity::il2cpp::MethodInfo {
687        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[21]
688    }
689
690    pub fn get_eyes_is_empty_method_info() -> &'static ::unity::il2cpp::MethodInfo {
691        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[22]
692    }
693
694    pub fn solve_eyes_method_info() -> &'static ::unity::il2cpp::MethodInfo {
695        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[23]
696    }
697
698    pub fn get_forwards_method_info() -> &'static ::unity::il2cpp::MethodInfo {
699        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[24]
700    }
701
702    pub fn set_bones_method_info() -> &'static ::unity::il2cpp::MethodInfo {
703        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[25]
704    }
705
706    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
707        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[26]
708    }
709}
710
711#[cfg(feature = "root_motion-final_ik-iksolverlookat")]
712impl IKSolverLookAt {
713    #[doc = "Direct (non-virtual) call to `IKSolverLookAt`'s own `StoreDefaultLocalState`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
714    pub unsafe fn store_default_local_state(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
715        let __mi = Self::store_default_local_state_method_info();
716        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
717        __inner(this.into(), ::core::option::Option::None)
718    }
719
720    #[doc = "Direct (non-virtual) call to `IKSolverLookAt`'s own `FixTransforms`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
721    pub unsafe fn fix_transforms(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
722        let __mi = Self::fix_transforms_method_info();
723        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
724        __inner(this.into(), ::core::option::Option::None)
725    }
726
727    #[doc = "Direct (non-virtual) call to `IKSolverLookAt`'s own `IsValid`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
728    pub unsafe fn is_valid(this: impl ::core::convert::Into<::unity::IlInstance>, message: *mut ::unity::Il2CppString) -> bool {
729        let __mi = Self::is_valid_method_info();
730        let __inner: extern "C" fn(::unity::IlInstance, *mut ::unity::Il2CppString, ::unity::OptionalMethod) -> bool =
731            ::core::mem::transmute(__mi.method_ptr);
732        __inner(this.into(), message, ::core::option::Option::None)
733    }
734
735    #[doc = "Direct (non-virtual) call to `IKSolverLookAt`'s own `GetPoints`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
736    pub unsafe fn get_points(
737        this: impl ::core::convert::Into<::unity::IlInstance>,
738    ) -> ::unity::Array<crate::root_motion::final_ik::iksolver::IKSolver_Point> {
739        let __mi = Self::get_points_method_info();
740        let __inner: extern "C" fn(
741            ::unity::IlInstance,
742            ::unity::OptionalMethod,
743        ) -> ::unity::Array<crate::root_motion::final_ik::iksolver::IKSolver_Point> = ::core::mem::transmute(__mi.method_ptr);
744        __inner(this.into(), ::core::option::Option::None)
745    }
746
747    #[doc = "Direct (non-virtual) call to `IKSolverLookAt`'s own `GetPoint`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
748    pub unsafe fn get_point(
749        this: impl ::core::convert::Into<::unity::IlInstance>,
750        transform: crate::unity_engine::transform::Transform,
751    ) -> crate::root_motion::final_ik::iksolver::IKSolver_Point {
752        let __mi = Self::get_point_method_info();
753        let __inner: extern "C" fn(
754            ::unity::IlInstance,
755            crate::unity_engine::transform::Transform,
756            ::unity::OptionalMethod,
757        ) -> crate::root_motion::final_ik::iksolver::IKSolver_Point = ::core::mem::transmute(__mi.method_ptr);
758        __inner(this.into(), transform, ::core::option::Option::None)
759    }
760
761    #[doc = "Direct (non-virtual) call to `IKSolverLookAt`'s own `OnInitiate`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
762    pub unsafe fn on_initiate(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
763        let __mi = Self::on_initiate_method_info();
764        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
765        __inner(this.into(), ::core::option::Option::None)
766    }
767
768    #[doc = "Direct (non-virtual) call to `IKSolverLookAt`'s own `OnUpdate`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
769    pub unsafe fn on_update(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
770        let __mi = Self::on_update_method_info();
771        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
772        __inner(this.into(), ::core::option::Option::None)
773    }
774}
775
776#[cfg(feature = "root_motion-final_ik-iksolverlookat")]
777impl IKSolverLookAt {
778    #[doc = "`.ctor()` — no args"]
779    pub fn new() -> Self {
780        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
781            panic!(
782                "{}
783::{}
784 failed to instantiate",
785                ::core::stringify!(IKSolverLookAt),
786                ::core::stringify!(new),
787            )
788        });
789        <Self as IIKSolverLookAtMethods>::ctor(this);
790        this
791    }
792}
793
794#[cfg(feature = "root_motion-final_ik-iksolverlookat")]
795#[doc(hidden)]
796pub mod prelude {
797    pub use super::{
798        IIKSolverLookAt, IIKSolverLookAtMethods, IIKSolverLookAt_LookAtBone, IIKSolverLookAt_LookAtBoneMethods, IKSolverLookAt,
799        IKSolverLookAt_LookAtBone,
800    };
801    #[cfg(feature = "root_motion-final_ik-iksolver")]
802    pub use crate::root_motion::final_ik::iksolver::IIKSolverMethods;
803    #[cfg(feature = "root_motion-final_ik-iksolver")]
804    pub use crate::root_motion::final_ik::iksolver::IIKSolver_BoneMethods;
805    #[cfg(feature = "root_motion-final_ik-iksolver")]
806    pub use crate::root_motion::final_ik::iksolver::IIKSolver_PointMethods;
807    #[cfg(feature = "system-object")]
808    pub use crate::system::object::IObjectMethods;
809    pub use crate::{
810        root_motion::final_ik::iksolver::{IIKSolver, IIKSolver_Bone, IIKSolver_Point, IKSolver, IKSolver_Bone, IKSolver_Point},
811        system::object::IObject,
812    };
813}