Skip to main content

engage/generated/root_motion/final_ik/
grounderik.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "root_motion-final_ik-grounderik-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        root_motion::final_ik::grounder::{Grounder, IGrounder},
10        system::object::{IObject, Object},
11        unity_engine::{
12            behaviour::{Behaviour, IBehaviour},
13            component::{Component, IComponent},
14            monobehaviour::{IMonoBehaviour, MonoBehaviour},
15            object_2::{IObject_2, Object_2},
16        },
17    };
18
19    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/root_motion/final_ik/grounderik/GrounderIK.md"))]
20    #[::unity::class(namespace = "RootMotion.FinalIK", name = "GrounderIK")]
21    #[parent(crate::root_motion::final_ik::grounder::Grounder)]
22    pub struct GrounderIK {
23        #[offset(64)]
24        #[rename(name = "legs")]
25        pub legs: ::unity::Array<crate::root_motion::final_ik::ik::IK>,
26        #[offset(72)]
27        #[rename(name = "pelvis")]
28        pub pelvis: crate::unity_engine::transform::Transform,
29        #[offset(80)]
30        #[rename(name = "characterRoot")]
31        pub character_root: crate::unity_engine::transform::Transform,
32        #[offset(88)]
33        #[rename(name = "rootRotationWeight")]
34        pub root_rotation_weight: f32,
35        #[offset(92)]
36        #[rename(name = "rootRotationSpeed")]
37        pub root_rotation_speed: f32,
38        #[offset(96)]
39        #[rename(name = "maxRootRotationAngle")]
40        pub max_root_rotation_angle: f32,
41        #[offset(104)]
42        #[rename(name = "feet")]
43        pub feet: ::unity::Array<crate::unity_engine::transform::Transform>,
44        #[offset(112)]
45        #[rename(name = "footRotations")]
46        pub foot_rotations: ::unity::Array<crate::unity_engine::quaternion::Quaternion>,
47        #[offset(120)]
48        #[rename(name = "animatedPelvisLocalPosition")]
49        pub animated_pelvis_local_position: crate::unity_engine::vector3::Vector3,
50        #[offset(132)]
51        #[rename(name = "solvedPelvisLocalPosition")]
52        pub solved_pelvis_local_position: crate::unity_engine::vector3::Vector3,
53        #[offset(144)]
54        #[rename(name = "solvedFeet")]
55        pub solved_feet: i32,
56        #[offset(148)]
57        #[rename(name = "solved")]
58        pub solved: bool,
59        #[offset(152)]
60        #[rename(name = "lastWeight")]
61        pub last_weight: f32,
62        #[offset(160)]
63        #[rename(name = "characterRootRigidbody")]
64        pub character_root_rigidbody: crate::unity_engine::rigidbody::Rigidbody,
65    }
66}
67
68#[cfg(feature = "root_motion-final_ik-grounderik-types")]
69pub use __types::*;
70
71#[cfg(feature = "root_motion-final_ik-grounderik")]
72pub trait IGrounderIKMethods: IGrounderIK {
73    #[doc = "`OpenUserManual()` overload"]
74    fn open_user_manual(self) -> () {
75        unsafe {
76            let __receiver = <GrounderIK as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
77            {
78                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
79                let __vi = *__vt.get(5usize).unwrap_or_else(|| {
80                    panic!(
81                        "unity: virtual slot {}
82 out of range (vtable len {}
83) on the runtime class behind {}
84 (method `{}
85`)",
86                        5usize,
87                        __vt.len(),
88                        <GrounderIK as ::unity::ClassIdentity>::NAME,
89                        "OpenUserManual",
90                    )
91                });
92                let __inner: extern "C" fn(GrounderIK, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
93                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
94                __inner(__receiver, __mi)
95            }
96        }
97    }
98    #[doc = "`OpenScriptReference()` overload"]
99    fn open_script_reference(self) -> () {
100        unsafe {
101            let __receiver = <GrounderIK as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
102            {
103                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
104                let __vi = *__vt.get(6usize).unwrap_or_else(|| {
105                    panic!(
106                        "unity: virtual slot {}
107 out of range (vtable len {}
108) on the runtime class behind {}
109 (method `{}
110`)",
111                        6usize,
112                        __vt.len(),
113                        <GrounderIK as ::unity::ClassIdentity>::NAME,
114                        "OpenScriptReference",
115                    )
116                });
117                let __inner: extern "C" fn(GrounderIK, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
118                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
119                __inner(__receiver, __mi)
120            }
121        }
122    }
123    #[doc = "`ResetPosition()` overload"]
124    fn reset_position(self) -> () {
125        unsafe {
126            let __receiver = <GrounderIK as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
127            {
128                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
129                let __vi = *__vt.get(4usize).unwrap_or_else(|| {
130                    panic!(
131                        "unity: virtual slot {}
132 out of range (vtable len {}
133) on the runtime class behind {}
134 (method `{}
135`)",
136                        4usize,
137                        __vt.len(),
138                        <GrounderIK as ::unity::ClassIdentity>::NAME,
139                        "ResetPosition",
140                    )
141                });
142                let __inner: extern "C" fn(GrounderIK, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
143                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
144                __inner(__receiver, __mi)
145            }
146        }
147    }
148    #[doc = "`IsReadyToInitiate()` overload"]
149    fn is_ready_to_initiate(self) -> bool {
150        unsafe {
151            let __receiver = <GrounderIK as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
152            ::unity::il2cpp_call!((::unity::module_base()+0x29734f0usize)as*mut u8,bool;
153(GrounderIK)__receiver)
154        }
155    }
156    #[doc = "`OnDisable()` overload"]
157    fn on_disable(self) -> () {
158        unsafe {
159            let __receiver = <GrounderIK as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
160            ::unity::il2cpp_call!((::unity::module_base()+0x2973720usize)as*mut u8,();
161(GrounderIK)__receiver)
162        }
163    }
164    #[doc = "`Update()` overload"]
165    fn update(self) -> () {
166        unsafe {
167            let __receiver = <GrounderIK as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
168            ::unity::il2cpp_call!((::unity::module_base()+0x2973820usize)as*mut u8,();
169(GrounderIK)__receiver)
170        }
171    }
172    #[doc = "`Initiate()` overload"]
173    fn initiate(self) -> () {
174        unsafe {
175            let __receiver = <GrounderIK as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
176            ::unity::il2cpp_call!((::unity::module_base()+0x2973db0usize)as*mut u8,();
177(GrounderIK)__receiver)
178        }
179    }
180    #[doc = "`OnSolverUpdate()` overload"]
181    fn on_solver_update(self) -> () {
182        unsafe {
183            let __receiver = <GrounderIK as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
184            ::unity::il2cpp_call!((::unity::module_base()+0x29741f0usize)as*mut u8,();
185(GrounderIK)__receiver)
186        }
187    }
188    #[doc = "`SetLegIK(i32)` overload"]
189    fn set_leg_ik(self, index: impl ::core::convert::Into<i32>) -> () {
190        unsafe {
191            let __receiver = <GrounderIK as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
192            ::unity::il2cpp_call!((::unity::module_base()+0x2974360usize)as*mut u8,();
193(GrounderIK)__receiver,(i32)::core::convert::Into::into(index))
194        }
195    }
196    #[doc = "`OnPostSolverUpdate()` overload"]
197    fn on_post_solver_update(self) -> () {
198        unsafe {
199            let __receiver = <GrounderIK as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
200            ::unity::il2cpp_call!((::unity::module_base()+0x29745d0usize)as*mut u8,();
201(GrounderIK)__receiver)
202        }
203    }
204    #[doc = "`OnDestroy()` overload"]
205    fn on_destroy(self) -> () {
206        unsafe {
207            let __receiver = <GrounderIK as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
208            ::unity::il2cpp_call!((::unity::module_base()+0x2974710usize)as*mut u8,();
209(GrounderIK)__receiver)
210        }
211    }
212    #[doc = "`.ctor()` overload"]
213    fn ctor(self) -> () {
214        unsafe {
215            let __receiver = <GrounderIK as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
216            ::unity::il2cpp_call!((::unity::module_base()+0x2974910usize)as*mut u8,();
217(GrounderIK)__receiver)
218        }
219    }
220}
221
222#[cfg(feature = "root_motion-final_ik-grounderik")]
223impl<__T: IGrounderIK> IGrounderIKMethods for __T {}
224
225#[cfg(feature = "root_motion-final_ik-grounderik")]
226impl GrounderIK {
227    pub fn open_user_manual_method_info() -> &'static ::unity::il2cpp::MethodInfo {
228        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
229    }
230
231    pub fn open_script_reference_method_info() -> &'static ::unity::il2cpp::MethodInfo {
232        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
233    }
234
235    pub fn reset_position_method_info() -> &'static ::unity::il2cpp::MethodInfo {
236        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
237    }
238
239    pub fn is_ready_to_initiate_method_info() -> &'static ::unity::il2cpp::MethodInfo {
240        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
241    }
242
243    pub fn on_disable_method_info() -> &'static ::unity::il2cpp::MethodInfo {
244        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
245    }
246
247    pub fn update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
248        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
249    }
250
251    pub fn initiate_method_info() -> &'static ::unity::il2cpp::MethodInfo {
252        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
253    }
254
255    pub fn on_solver_update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
256        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
257    }
258
259    pub fn set_leg_ik_method_info() -> &'static ::unity::il2cpp::MethodInfo {
260        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
261    }
262
263    pub fn on_post_solver_update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
264        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
265    }
266
267    pub fn on_destroy_method_info() -> &'static ::unity::il2cpp::MethodInfo {
268        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
269    }
270
271    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
272        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
273    }
274}
275
276#[cfg(feature = "root_motion-final_ik-grounderik")]
277impl GrounderIK {
278    #[doc = "Direct (non-virtual) call to `GrounderIK`'s own `OpenUserManual`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
279    pub unsafe fn open_user_manual(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
280        let __mi = Self::open_user_manual_method_info();
281        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
282        __inner(this.into(), ::core::option::Option::None)
283    }
284
285    #[doc = "Direct (non-virtual) call to `GrounderIK`'s own `OpenScriptReference`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
286    pub unsafe fn open_script_reference(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
287        let __mi = Self::open_script_reference_method_info();
288        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
289        __inner(this.into(), ::core::option::Option::None)
290    }
291
292    #[doc = "Direct (non-virtual) call to `GrounderIK`'s own `ResetPosition`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
293    pub unsafe fn reset_position(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
294        let __mi = Self::reset_position_method_info();
295        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
296        __inner(this.into(), ::core::option::Option::None)
297    }
298}
299
300#[cfg(feature = "root_motion-final_ik-grounderik")]
301impl GrounderIK {
302    #[doc = "`.ctor()` — no args"]
303    pub fn new() -> Self {
304        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
305            panic!(
306                "{}
307::{}
308 failed to instantiate",
309                ::core::stringify!(GrounderIK),
310                ::core::stringify!(new),
311            )
312        });
313        <Self as IGrounderIKMethods>::ctor(this);
314        this
315    }
316}
317
318#[cfg(feature = "root_motion-final_ik-grounderik")]
319#[doc(hidden)]
320pub mod prelude {
321    pub use super::{GrounderIK, IGrounderIK, IGrounderIKMethods};
322    #[cfg(feature = "root_motion-final_ik-grounder")]
323    pub use crate::root_motion::final_ik::grounder::IGrounderMethods;
324    #[cfg(feature = "system-object")]
325    pub use crate::system::object::IObjectMethods;
326    #[cfg(feature = "unity_engine-behaviour")]
327    pub use crate::unity_engine::behaviour::IBehaviourMethods;
328    #[cfg(feature = "unity_engine-component")]
329    pub use crate::unity_engine::component::IComponentMethods;
330    #[cfg(feature = "unity_engine-monobehaviour")]
331    pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
332    #[cfg(feature = "unity_engine-object_2")]
333    pub use crate::unity_engine::object_2::IObject_2Methods;
334    pub use crate::{
335        root_motion::final_ik::grounder::IGrounder,
336        system::object::IObject,
337        unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
338    };
339}