1#[cfg(feature = "root_motion-final_ik-grounding-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::system::{
9 object::{IObject, Object},
10 r#enum::{Enum, IEnum},
11 valuetype::{IValueType, ValueType},
12 };
13
14 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/root_motion/final_ik/grounding/Grounding.md"))]
15 #[::unity::class(namespace = "RootMotion.FinalIK", name = "Grounding")]
16 #[parent(crate::system::object::Object)]
17 pub struct Grounding {
18 #[offset(16)]
19 #[rename(name = "layers")]
20 pub layers: crate::unity_engine::layermask::LayerMask,
21 #[offset(20)]
22 #[rename(name = "maxStep")]
23 pub max_step: f32,
24 #[offset(24)]
25 #[rename(name = "heightOffset")]
26 pub height_offset: f32,
27 #[offset(28)]
28 #[rename(name = "footSpeed")]
29 pub foot_speed: f32,
30 #[offset(32)]
31 #[rename(name = "footRadius")]
32 pub foot_radius: f32,
33 #[offset(36)]
34 #[rename(name = "footCenterOffset")]
35 pub foot_center_offset: f32,
36 #[offset(40)]
37 #[rename(name = "prediction")]
38 pub prediction: f32,
39 #[offset(44)]
40 #[rename(name = "footRotationWeight")]
41 pub foot_rotation_weight: f32,
42 #[offset(48)]
43 #[rename(name = "footRotationSpeed")]
44 pub foot_rotation_speed: f32,
45 #[offset(52)]
46 #[rename(name = "maxFootRotationAngle")]
47 pub max_foot_rotation_angle: f32,
48 #[offset(56)]
49 #[rename(name = "rotateSolver")]
50 pub rotate_solver: bool,
51 #[offset(60)]
52 #[rename(name = "pelvisSpeed")]
53 pub pelvis_speed: f32,
54 #[offset(64)]
55 #[rename(name = "pelvisDamper")]
56 pub pelvis_damper: f32,
57 #[offset(68)]
58 #[rename(name = "lowerPelvisWeight")]
59 pub lower_pelvis_weight: f32,
60 #[offset(72)]
61 #[rename(name = "liftPelvisWeight")]
62 pub lift_pelvis_weight: f32,
63 #[offset(76)]
64 #[rename(name = "rootSphereCastRadius")]
65 pub root_sphere_cast_radius: f32,
66 #[offset(80)]
67 #[rename(name = "overstepFallsDown")]
68 pub overstep_falls_down: bool,
69 #[offset(84)]
70 #[rename(name = "quality")]
71 pub quality: crate::root_motion::final_ik::grounding::Grounding_Quality,
72 #[offset(164)]
73 #[rename(name = "initiated")]
74 pub initiated: bool,
75 }
76
77 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/root_motion/final_ik/grounding/Grounding_Pelvis.md"))]
78 #[::unity::class(namespace = "RootMotion.FinalIK", name = "Grounding.Pelvis")]
79 #[parent(crate::system::object::Object)]
80 pub struct Grounding_Pelvis {
81 #[offset(32)]
82 #[rename(name = "grounding")]
83 pub grounding: crate::root_motion::final_ik::grounding::Grounding,
84 #[offset(40)]
85 #[rename(name = "lastRootPosition")]
86 pub last_root_position: crate::unity_engine::vector3::Vector3,
87 #[offset(52)]
88 #[rename(name = "damperF")]
89 pub damper_f: f32,
90 #[offset(56)]
91 #[rename(name = "initiated")]
92 pub initiated: bool,
93 #[offset(64)]
94 #[rename(name = "lastTime")]
95 pub last_time: f64,
96 }
97
98 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/root_motion/final_ik/grounding/Grounding_Leg.md"))]
99 #[::unity::class(namespace = "RootMotion.FinalIK", name = "Grounding.Leg")]
100 #[parent(crate::system::object::Object)]
101 pub struct Grounding_Leg {
102 #[offset(32)]
103 #[rename(name = "rotationOffset")]
104 pub rotation_offset: crate::unity_engine::quaternion::Quaternion,
105 #[offset(84)]
106 #[rename(name = "invertFootCenter")]
107 pub invert_foot_center: bool,
108 #[offset(176)]
109 #[rename(name = "grounding")]
110 pub grounding: crate::root_motion::final_ik::grounding::Grounding,
111 #[offset(184)]
112 #[rename(name = "lastTime")]
113 pub last_time: f64,
114 #[offset(192)]
115 #[rename(name = "deltaTime")]
116 pub delta_time: f64,
117 #[offset(200)]
118 #[rename(name = "lastPosition")]
119 pub last_position: crate::unity_engine::vector3::Vector3,
120 #[offset(212)]
121 #[rename(name = "toHitNormal")]
122 pub to_hit_normal: crate::unity_engine::quaternion::Quaternion,
123 #[offset(228)]
124 #[rename(name = "r")]
125 pub r: crate::unity_engine::quaternion::Quaternion,
126 #[offset(244)]
127 #[rename(name = "up")]
128 pub up: crate::unity_engine::vector3::Vector3,
129 #[offset(256)]
130 #[rename(name = "doOverrideFootPosition")]
131 pub do_override_foot_position: bool,
132 #[offset(260)]
133 #[rename(name = "overrideFootPosition")]
134 pub override_foot_position: crate::unity_engine::vector3::Vector3,
135 #[offset(272)]
136 #[rename(name = "transformPosition")]
137 pub transform_position: crate::unity_engine::vector3::Vector3,
138 }
139
140 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/root_motion/final_ik/grounding/Grounding_Quality.md"))]
141 #[repr(C)]
142 #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
143 pub struct Grounding_Quality {
144 pub value: i32,
145 }
146 impl ::unity::ClassIdentity for Grounding_Quality {
147 const NAME: &'static str = "Grounding.Quality";
148 const NAMESPACE: &'static str = "RootMotion.FinalIK";
149
150 fn class() -> ::unity::Class {
151 static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
152 *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
153 }
154 }
155 impl ::unity::IlType for Grounding_Quality {
156 fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
157 &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
158 }
159 }
160 impl Grounding_Quality {
161 pub fn fastest() -> Self {
162 Self { value: 0 }
163 }
164
165 pub fn simple() -> Self {
166 Self { value: 1 }
167 }
168
169 pub fn best() -> Self {
170 Self { value: 2 }
171 }
172 }
173}
174
175#[cfg(feature = "root_motion-final_ik-grounding-types")]
176pub use __types::*;
177
178#[cfg(feature = "root_motion-final_ik-grounding")]
179pub trait IGroundingMethods: IGrounding {
180 #[doc = "`get_legs()` overload"]
181 fn get_legs(self) -> ::unity::Array<crate::root_motion::final_ik::grounding::Grounding_Leg> {
182 unsafe {
183 let __receiver = <Grounding as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
184 ::unity::il2cpp_call!((::unity::module_base()+0x2977700usize)as*mut u8, ::unity::Array<crate::root_motion::final_ik::grounding::Grounding_Leg> ;
185(Grounding)__receiver)
186 }
187 }
188 #[doc = "`set_legs(::unity::Array<crate::root_motion::final_ik::grounding::Grounding_Leg>)` overload"]
189 fn set_legs(self, value: impl ::core::convert::Into<::unity::Array<crate::root_motion::final_ik::grounding::Grounding_Leg>>) -> () {
190 unsafe {
191 let __receiver = <Grounding as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
192 ::unity::il2cpp_call!((::unity::module_base()+0x2977710usize)as*mut u8,();
193(Grounding)__receiver,(::unity::Array<crate::root_motion::final_ik::grounding::Grounding_Leg>)::core::convert::Into::into(value))
194 }
195 }
196 #[doc = "`get_pelvis()` overload"]
197 fn get_pelvis(self) -> crate::root_motion::final_ik::grounding::Grounding_Pelvis {
198 unsafe {
199 let __receiver = <Grounding as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
200 ::unity::il2cpp_call!((::unity::module_base()+0x2977720usize)as*mut u8,crate::root_motion::final_ik::grounding::Grounding_Pelvis;
201(Grounding)__receiver)
202 }
203 }
204 #[doc = "`set_pelvis(crate::root_motion::final_ik::grounding::Grounding_Pelvis)` overload"]
205 fn set_pelvis(self, value: impl ::core::convert::Into<crate::root_motion::final_ik::grounding::Grounding_Pelvis>) -> () {
206 unsafe {
207 let __receiver = <Grounding as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
208 ::unity::il2cpp_call!((::unity::module_base()+0x2977730usize)as*mut u8,();
209(Grounding)__receiver,(crate::root_motion::final_ik::grounding::Grounding_Pelvis)::core::convert::Into::into(value))
210 }
211 }
212 #[doc = "`get_isGrounded()` overload"]
213 fn get_is_grounded(self) -> bool {
214 unsafe {
215 let __receiver = <Grounding as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
216 ::unity::il2cpp_call!((::unity::module_base()+0x2977740usize)as*mut u8,bool;
217(Grounding)__receiver)
218 }
219 }
220 #[doc = "`set_isGrounded(bool)` overload"]
221 fn set_is_grounded(self, value: impl ::core::convert::Into<bool>) -> () {
222 unsafe {
223 let __receiver = <Grounding as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
224 ::unity::il2cpp_call!((::unity::module_base()+0x2977750usize)as*mut u8,();
225(Grounding)__receiver,(bool)::core::convert::Into::into(value))
226 }
227 }
228 #[doc = "`get_root()` overload"]
229 fn get_root(self) -> crate::unity_engine::transform::Transform {
230 unsafe {
231 let __receiver = <Grounding as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
232 ::unity::il2cpp_call!((::unity::module_base()+0x2977760usize)as*mut u8,crate::unity_engine::transform::Transform;
233(Grounding)__receiver)
234 }
235 }
236 #[doc = "`set_root(crate::unity_engine::transform::Transform)` overload"]
237 fn set_root(self, value: impl ::core::convert::Into<crate::unity_engine::transform::Transform>) -> () {
238 unsafe {
239 let __receiver = <Grounding as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
240 ::unity::il2cpp_call!((::unity::module_base()+0x2977770usize)as*mut u8,();
241(Grounding)__receiver,(crate::unity_engine::transform::Transform)::core::convert::Into::into(value))
242 }
243 }
244 #[doc = "`get_rootHit()` overload"]
245 fn get_root_hit(self) -> crate::unity_engine::raycasthit::RaycastHit {
246 unsafe {
247 let __receiver = <Grounding as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
248 ::unity::il2cpp_call!((::unity::module_base()+0x2977780usize)as*mut u8,crate::unity_engine::raycasthit::RaycastHit;
249(Grounding)__receiver)
250 }
251 }
252 #[doc = "`set_rootHit(crate::unity_engine::raycasthit::RaycastHit)` overload"]
253 fn set_root_hit(self, value: impl ::core::convert::Into<crate::unity_engine::raycasthit::RaycastHit>) -> () {
254 unsafe {
255 let __receiver = <Grounding as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
256 ::unity::il2cpp_call!((::unity::module_base()+0x29777b0usize)as*mut u8,();
257(Grounding)__receiver,(crate::unity_engine::raycasthit::RaycastHit)::core::convert::Into::into(value))
258 }
259 }
260 #[doc = "`get_rootGrounded()` overload"]
261 fn get_root_grounded(self) -> bool {
262 unsafe {
263 let __receiver = <Grounding as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
264 ::unity::il2cpp_call!((::unity::module_base()+0x29777d0usize)as*mut u8,bool;
265(Grounding)__receiver)
266 }
267 }
268 #[doc = "`GetRootHit(f32)` overload"]
269 fn get_root_hit_2(self, max_distance_mlp: impl ::core::convert::Into<f32>) -> crate::unity_engine::raycasthit::RaycastHit {
270 unsafe {
271 let __receiver = <Grounding as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
272 ::unity::il2cpp_call!((::unity::module_base()+0x2977830usize)as*mut u8,crate::unity_engine::raycasthit::RaycastHit;
273(Grounding)__receiver,(f32)::core::convert::Into::into(max_distance_mlp))
274 }
275 }
276 #[doc = "`IsValid(*mut::unity::Il2CppString)` overload"]
277 fn is_valid(self) -> (bool, ::unity::Il2CppString) {
278 unsafe {
279 let __receiver = <Grounding as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
280 let mut __out_0 = ::core::mem::MaybeUninit::<::unity::Il2CppString>::uninit();
281 let __ret = {
282 ::unity::il2cpp_call!((::unity::module_base()+0x2977a90usize)as*mut u8,bool;
283(Grounding)__receiver,(*mut::unity::Il2CppString)__out_0.as_mut_ptr())
284 };
285 (__ret, __out_0.assume_init())
286 }
287 }
288 #[doc = "`Initiate(crate::unity_engine::transform::Transform, ::unity::Array<crate::unity_engine::transform::Transform>)` overload"]
289 fn initiate(
290 self,
291 root: impl ::core::convert::Into<crate::unity_engine::transform::Transform>,
292 feet: impl ::core::convert::Into<::unity::Array<crate::unity_engine::transform::Transform>>,
293 ) -> () {
294 unsafe {
295 let __receiver = <Grounding as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
296 ::unity::il2cpp_call!((::unity::module_base()+0x29717a0usize)as*mut u8,();
297(Grounding)__receiver,(crate::unity_engine::transform::Transform)::core::convert::Into::into(root),(::unity::Array<crate::unity_engine::transform::Transform>)::core::convert::Into::into(feet))
298 }
299 }
300 #[doc = "`Update()` overload"]
301 fn update(self) -> () {
302 unsafe {
303 let __receiver = <Grounding as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
304 ::unity::il2cpp_call!((::unity::module_base()+0x2971e50usize)as*mut u8,();
305(Grounding)__receiver)
306 }
307 }
308 #[doc = "`GetLegsPlaneNormal()` overload"]
309 fn get_legs_plane_normal(self) -> crate::unity_engine::vector3::Vector3 {
310 unsafe {
311 let __receiver = <Grounding as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
312 ::unity::il2cpp_call!((::unity::module_base()+0x2973c50usize)as*mut u8,crate::unity_engine::vector3::Vector3;
313(Grounding)__receiver)
314 }
315 }
316 #[doc = "`Reset()` overload"]
317 fn reset(self) -> () {
318 unsafe {
319 let __receiver = <Grounding as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
320 ::unity::il2cpp_call!((::unity::module_base()+0x29712b0usize)as*mut u8,();
321(Grounding)__receiver)
322 }
323 }
324 #[doc = "`LogWarning(::unity::Il2CppString)` overload"]
325 fn log_warning(self, message: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
326 unsafe {
327 let __receiver = <Grounding as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
328 ::unity::il2cpp_call!((::unity::module_base()+0x2977bb0usize)as*mut u8,();
329(Grounding)__receiver,(::unity::Il2CppString)::core::convert::Into::into(message))
330 }
331 }
332 #[doc = "`get_up()` overload"]
333 fn get_up(self) -> crate::unity_engine::vector3::Vector3 {
334 unsafe {
335 let __receiver = <Grounding as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
336 ::unity::il2cpp_call!((::unity::module_base()+0x29721a0usize)as*mut u8,crate::unity_engine::vector3::Vector3;
337(Grounding)__receiver)
338 }
339 }
340 #[doc = "`GetVerticalOffset(crate::unity_engine::vector3::Vector3, crate::unity_engine::vector3::Vector3)` overload"]
341 fn get_vertical_offset(
342 self,
343 p1: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>,
344 p2: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>,
345 ) -> f32 {
346 unsafe {
347 let __receiver = <Grounding as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
348 ::unity::il2cpp_call!((::unity::module_base()+0x2977c60usize)as*mut u8,f32;
349(Grounding)__receiver,(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(p1),(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(p2))
350 }
351 }
352 #[doc = "`Flatten(crate::unity_engine::vector3::Vector3)` overload"]
353 fn flatten(self, v: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>) -> crate::unity_engine::vector3::Vector3 {
354 unsafe {
355 let __receiver = <Grounding as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
356 ::unity::il2cpp_call!((::unity::module_base()+0x2977d40usize)as*mut u8,crate::unity_engine::vector3::Vector3;
357(Grounding)__receiver,(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(v))
358 }
359 }
360 #[doc = "`get_useRootRotation()` overload"]
361 fn get_use_root_rotation(self) -> bool {
362 unsafe {
363 let __receiver = <Grounding as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
364 ::unity::il2cpp_call!((::unity::module_base()+0x2977bd0usize)as*mut u8,bool;
365(Grounding)__receiver)
366 }
367 }
368 #[doc = "`GetFootCenterOffset()` overload"]
369 fn get_foot_center_offset(self) -> crate::unity_engine::vector3::Vector3 {
370 unsafe {
371 let __receiver = <Grounding as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
372 ::unity::il2cpp_call!((::unity::module_base()+0x2977e50usize)as*mut u8,crate::unity_engine::vector3::Vector3;
373(Grounding)__receiver)
374 }
375 }
376 #[doc = "`.ctor()` overload"]
377 fn ctor(self) -> () {
378 unsafe {
379 let __receiver = <Grounding as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
380 ::unity::il2cpp_call!((::unity::module_base()+0x2971100usize)as*mut u8,();
381(Grounding)__receiver)
382 }
383 }
384}
385
386#[cfg(feature = "root_motion-final_ik-grounding")]
387impl<__T: IGrounding> IGroundingMethods for __T {}
388
389#[cfg(feature = "root_motion-final_ik-grounding")]
390impl Grounding {
391 pub fn get_legs_method_info() -> &'static ::unity::il2cpp::MethodInfo {
392 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
393 }
394
395 pub fn set_legs_method_info() -> &'static ::unity::il2cpp::MethodInfo {
396 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
397 }
398
399 pub fn get_pelvis_method_info() -> &'static ::unity::il2cpp::MethodInfo {
400 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
401 }
402
403 pub fn set_pelvis_method_info() -> &'static ::unity::il2cpp::MethodInfo {
404 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
405 }
406
407 pub fn get_is_grounded_method_info() -> &'static ::unity::il2cpp::MethodInfo {
408 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
409 }
410
411 pub fn set_is_grounded_method_info() -> &'static ::unity::il2cpp::MethodInfo {
412 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
413 }
414
415 pub fn get_root_method_info() -> &'static ::unity::il2cpp::MethodInfo {
416 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
417 }
418
419 pub fn set_root_method_info() -> &'static ::unity::il2cpp::MethodInfo {
420 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
421 }
422
423 pub fn get_root_hit_method_info() -> &'static ::unity::il2cpp::MethodInfo {
424 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
425 }
426
427 pub fn set_root_hit_method_info() -> &'static ::unity::il2cpp::MethodInfo {
428 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
429 }
430
431 pub fn get_root_grounded_method_info() -> &'static ::unity::il2cpp::MethodInfo {
432 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
433 }
434
435 pub fn get_root_hit_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
436 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
437 }
438
439 pub fn is_valid_method_info() -> &'static ::unity::il2cpp::MethodInfo {
440 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
441 }
442
443 pub fn initiate_method_info() -> &'static ::unity::il2cpp::MethodInfo {
444 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
445 }
446
447 pub fn update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
448 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
449 }
450
451 pub fn get_legs_plane_normal_method_info() -> &'static ::unity::il2cpp::MethodInfo {
452 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
453 }
454
455 pub fn reset_method_info() -> &'static ::unity::il2cpp::MethodInfo {
456 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
457 }
458
459 pub fn log_warning_method_info() -> &'static ::unity::il2cpp::MethodInfo {
460 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
461 }
462
463 pub fn get_up_method_info() -> &'static ::unity::il2cpp::MethodInfo {
464 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
465 }
466
467 pub fn get_vertical_offset_method_info() -> &'static ::unity::il2cpp::MethodInfo {
468 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[19]
469 }
470
471 pub fn flatten_method_info() -> &'static ::unity::il2cpp::MethodInfo {
472 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[20]
473 }
474
475 pub fn get_use_root_rotation_method_info() -> &'static ::unity::il2cpp::MethodInfo {
476 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[21]
477 }
478
479 pub fn get_foot_center_offset_method_info() -> &'static ::unity::il2cpp::MethodInfo {
480 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[22]
481 }
482
483 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
484 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[23]
485 }
486}
487
488#[cfg(feature = "root_motion-final_ik-grounding")]
489impl Grounding {
490 #[doc = "`.ctor()` — no args"]
491 pub fn new() -> Self {
492 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
493 panic!(
494 "{}
495::{}
496 failed to instantiate",
497 ::core::stringify!(Grounding),
498 ::core::stringify!(new),
499 )
500 });
501 <Self as IGroundingMethods>::ctor(this);
502 this
503 }
504}
505
506#[cfg(feature = "root_motion-final_ik-grounding")]
507pub trait IGrounding_PelvisMethods: IGrounding_Pelvis {
508 #[doc = "`get_IKOffset()` overload"]
509 fn get_ik_offset(self) -> crate::unity_engine::vector3::Vector3 {
510 unsafe {
511 let __receiver = <Grounding_Pelvis as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
512 ::unity::il2cpp_call!((::unity::module_base()+0x1cdd1f0usize)as*mut u8,crate::unity_engine::vector3::Vector3;
513(Grounding_Pelvis)__receiver)
514 }
515 }
516 #[doc = "`set_IKOffset(crate::unity_engine::vector3::Vector3)` overload"]
517 fn set_ik_offset(self, value: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>) -> () {
518 unsafe {
519 let __receiver = <Grounding_Pelvis as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
520 ::unity::il2cpp_call!((::unity::module_base()+0x1cdd200usize)as*mut u8,();
521(Grounding_Pelvis)__receiver,(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(value))
522 }
523 }
524 #[doc = "`get_heightOffset()` overload"]
525 fn get_height_offset(self) -> f32 {
526 unsafe {
527 let __receiver = <Grounding_Pelvis as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
528 ::unity::il2cpp_call!((::unity::module_base()+0x1cdd210usize)as*mut u8,f32;
529(Grounding_Pelvis)__receiver)
530 }
531 }
532 #[doc = "`set_heightOffset(f32)` overload"]
533 fn set_height_offset(self, value: impl ::core::convert::Into<f32>) -> () {
534 unsafe {
535 let __receiver = <Grounding_Pelvis as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
536 ::unity::il2cpp_call!((::unity::module_base()+0x1cdd220usize)as*mut u8,();
537(Grounding_Pelvis)__receiver,(f32)::core::convert::Into::into(value))
538 }
539 }
540 #[doc = "`Initiate(crate::root_motion::final_ik::grounding::Grounding)` overload"]
541 fn initiate(self, grounding: impl ::core::convert::Into<crate::root_motion::final_ik::grounding::Grounding>) -> () {
542 unsafe {
543 let __receiver = <Grounding_Pelvis as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
544 ::unity::il2cpp_call!((::unity::module_base()+0x1cdd230usize)as*mut u8,();
545(Grounding_Pelvis)__receiver,(crate::root_motion::final_ik::grounding::Grounding)::core::convert::Into::into(grounding))
546 }
547 }
548 #[doc = "`Reset()` overload"]
549 fn reset(self) -> () {
550 unsafe {
551 let __receiver = <Grounding_Pelvis as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
552 ::unity::il2cpp_call!((::unity::module_base()+0x1cdd2e0usize)as*mut u8,();
553(Grounding_Pelvis)__receiver)
554 }
555 }
556 #[doc = "`OnEnable()` overload"]
557 fn on_enable(self) -> () {
558 unsafe {
559 let __receiver = <Grounding_Pelvis as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
560 ::unity::il2cpp_call!((::unity::module_base()+0x1cdd290usize)as*mut u8,();
561(Grounding_Pelvis)__receiver)
562 }
563 }
564 #[doc = "`Process(f32, f32, bool)` overload"]
565 fn process(
566 self,
567 lowest_offset: impl ::core::convert::Into<f32>,
568 highest_offset: impl ::core::convert::Into<f32>,
569 is_grounded: impl ::core::convert::Into<bool>,
570 ) -> () {
571 unsafe {
572 let __receiver = <Grounding_Pelvis as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
573 ::unity::il2cpp_call!((::unity::module_base()+0x1cdd350usize)as*mut u8,();
574(Grounding_Pelvis)__receiver,(f32)::core::convert::Into::into(lowest_offset),(f32)::core::convert::Into::into(highest_offset),(bool)::core::convert::Into::into(is_grounded))
575 }
576 }
577 #[doc = "`.ctor()` overload"]
578 fn ctor(self) -> () {
579 unsafe {
580 let __receiver = <Grounding_Pelvis as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
581 ::unity::il2cpp_call!((::unity::module_base()+0x1cdd4d0usize)as*mut u8,();
582(Grounding_Pelvis)__receiver)
583 }
584 }
585}
586
587#[cfg(feature = "root_motion-final_ik-grounding")]
588impl<__T: IGrounding_Pelvis> IGrounding_PelvisMethods for __T {}
589
590#[cfg(feature = "root_motion-final_ik-grounding")]
591impl Grounding_Pelvis {
592 pub fn get_ik_offset_method_info() -> &'static ::unity::il2cpp::MethodInfo {
593 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
594 }
595
596 pub fn set_ik_offset_method_info() -> &'static ::unity::il2cpp::MethodInfo {
597 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
598 }
599
600 pub fn get_height_offset_method_info() -> &'static ::unity::il2cpp::MethodInfo {
601 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
602 }
603
604 pub fn set_height_offset_method_info() -> &'static ::unity::il2cpp::MethodInfo {
605 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
606 }
607
608 pub fn initiate_method_info() -> &'static ::unity::il2cpp::MethodInfo {
609 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
610 }
611
612 pub fn reset_method_info() -> &'static ::unity::il2cpp::MethodInfo {
613 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
614 }
615
616 pub fn on_enable_method_info() -> &'static ::unity::il2cpp::MethodInfo {
617 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
618 }
619
620 pub fn process_method_info() -> &'static ::unity::il2cpp::MethodInfo {
621 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
622 }
623
624 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
625 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
626 }
627}
628
629#[cfg(feature = "root_motion-final_ik-grounding")]
630impl Grounding_Pelvis {
631 #[doc = "`.ctor()` — no args"]
632 pub fn new() -> Self {
633 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
634 panic!(
635 "{}
636::{}
637 failed to instantiate",
638 ::core::stringify!(Grounding_Pelvis),
639 ::core::stringify!(new),
640 )
641 });
642 <Self as IGrounding_PelvisMethods>::ctor(this);
643 this
644 }
645}
646
647#[cfg(feature = "root_motion-final_ik-grounding")]
648pub trait IGrounding_LegMethods: IGrounding_Leg {
649 #[doc = "`get_isGrounded()` overload"]
650 fn get_is_grounded(self) -> bool {
651 unsafe {
652 let __receiver = <Grounding_Leg as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
653 ::unity::il2cpp_call!((::unity::module_base()+0x1cdb840usize)as*mut u8,bool;
654(Grounding_Leg)__receiver)
655 }
656 }
657 #[doc = "`set_isGrounded(bool)` overload"]
658 fn set_is_grounded(self, value: impl ::core::convert::Into<bool>) -> () {
659 unsafe {
660 let __receiver = <Grounding_Leg as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
661 ::unity::il2cpp_call!((::unity::module_base()+0x1cdb850usize)as*mut u8,();
662(Grounding_Leg)__receiver,(bool)::core::convert::Into::into(value))
663 }
664 }
665 #[doc = "`get_IKPosition()` overload"]
666 fn get_ik_position(self) -> crate::unity_engine::vector3::Vector3 {
667 unsafe {
668 let __receiver = <Grounding_Leg as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
669 ::unity::il2cpp_call!((::unity::module_base()+0x1cdb860usize)as*mut u8,crate::unity_engine::vector3::Vector3;
670(Grounding_Leg)__receiver)
671 }
672 }
673 #[doc = "`set_IKPosition(crate::unity_engine::vector3::Vector3)` overload"]
674 fn set_ik_position(self, value: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>) -> () {
675 unsafe {
676 let __receiver = <Grounding_Leg as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
677 ::unity::il2cpp_call!((::unity::module_base()+0x1cdb870usize)as*mut u8,();
678(Grounding_Leg)__receiver,(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(value))
679 }
680 }
681 #[doc = "`get_initiated()` overload"]
682 fn get_initiated(self) -> bool {
683 unsafe {
684 let __receiver = <Grounding_Leg as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
685 ::unity::il2cpp_call!((::unity::module_base()+0x1cdb880usize)as*mut u8,bool;
686(Grounding_Leg)__receiver)
687 }
688 }
689 #[doc = "`set_initiated(bool)` overload"]
690 fn set_initiated(self, value: impl ::core::convert::Into<bool>) -> () {
691 unsafe {
692 let __receiver = <Grounding_Leg as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
693 ::unity::il2cpp_call!((::unity::module_base()+0x1cdb890usize)as*mut u8,();
694(Grounding_Leg)__receiver,(bool)::core::convert::Into::into(value))
695 }
696 }
697 #[doc = "`get_heightFromGround()` overload"]
698 fn get_height_from_ground(self) -> f32 {
699 unsafe {
700 let __receiver = <Grounding_Leg as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
701 ::unity::il2cpp_call!((::unity::module_base()+0x1cdb8a0usize)as*mut u8,f32;
702(Grounding_Leg)__receiver)
703 }
704 }
705 #[doc = "`set_heightFromGround(f32)` overload"]
706 fn set_height_from_ground(self, value: impl ::core::convert::Into<f32>) -> () {
707 unsafe {
708 let __receiver = <Grounding_Leg as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
709 ::unity::il2cpp_call!((::unity::module_base()+0x1cdb8b0usize)as*mut u8,();
710(Grounding_Leg)__receiver,(f32)::core::convert::Into::into(value))
711 }
712 }
713 #[doc = "`get_velocity()` overload"]
714 fn get_velocity(self) -> crate::unity_engine::vector3::Vector3 {
715 unsafe {
716 let __receiver = <Grounding_Leg as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
717 ::unity::il2cpp_call!((::unity::module_base()+0x1cdb8c0usize)as*mut u8,crate::unity_engine::vector3::Vector3;
718(Grounding_Leg)__receiver)
719 }
720 }
721 #[doc = "`set_velocity(crate::unity_engine::vector3::Vector3)` overload"]
722 fn set_velocity(self, value: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>) -> () {
723 unsafe {
724 let __receiver = <Grounding_Leg as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
725 ::unity::il2cpp_call!((::unity::module_base()+0x1cdb8d0usize)as*mut u8,();
726(Grounding_Leg)__receiver,(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(value))
727 }
728 }
729 #[doc = "`get_transform()` overload"]
730 fn get_transform(self) -> crate::unity_engine::transform::Transform {
731 unsafe {
732 let __receiver = <Grounding_Leg as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
733 ::unity::il2cpp_call!((::unity::module_base()+0x1cdb8e0usize)as*mut u8,crate::unity_engine::transform::Transform;
734(Grounding_Leg)__receiver)
735 }
736 }
737 #[doc = "`set_transform(crate::unity_engine::transform::Transform)` overload"]
738 fn set_transform(self, value: impl ::core::convert::Into<crate::unity_engine::transform::Transform>) -> () {
739 unsafe {
740 let __receiver = <Grounding_Leg as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
741 ::unity::il2cpp_call!((::unity::module_base()+0x1cdb8f0usize)as*mut u8,();
742(Grounding_Leg)__receiver,(crate::unity_engine::transform::Transform)::core::convert::Into::into(value))
743 }
744 }
745 #[doc = "`get_IKOffset()` overload"]
746 fn get_ik_offset(self) -> f32 {
747 unsafe {
748 let __receiver = <Grounding_Leg as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
749 ::unity::il2cpp_call!((::unity::module_base()+0x1cdb900usize)as*mut u8,f32;
750(Grounding_Leg)__receiver)
751 }
752 }
753 #[doc = "`set_IKOffset(f32)` overload"]
754 fn set_ik_offset(self, value: impl ::core::convert::Into<f32>) -> () {
755 unsafe {
756 let __receiver = <Grounding_Leg as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
757 ::unity::il2cpp_call!((::unity::module_base()+0x1cdb910usize)as*mut u8,();
758(Grounding_Leg)__receiver,(f32)::core::convert::Into::into(value))
759 }
760 }
761 #[doc = "`get_heelHit()` overload"]
762 fn get_heel_hit(self) -> crate::unity_engine::raycasthit::RaycastHit {
763 unsafe {
764 let __receiver = <Grounding_Leg as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
765 ::unity::il2cpp_call!((::unity::module_base()+0x1cdb920usize)as*mut u8,crate::unity_engine::raycasthit::RaycastHit;
766(Grounding_Leg)__receiver)
767 }
768 }
769 #[doc = "`set_heelHit(crate::unity_engine::raycasthit::RaycastHit)` overload"]
770 fn set_heel_hit(self, value: impl ::core::convert::Into<crate::unity_engine::raycasthit::RaycastHit>) -> () {
771 unsafe {
772 let __receiver = <Grounding_Leg as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
773 ::unity::il2cpp_call!((::unity::module_base()+0x1cdb950usize)as*mut u8,();
774(Grounding_Leg)__receiver,(crate::unity_engine::raycasthit::RaycastHit)::core::convert::Into::into(value))
775 }
776 }
777 #[doc = "`get_capsuleHit()` overload"]
778 fn get_capsule_hit(self) -> crate::unity_engine::raycasthit::RaycastHit {
779 unsafe {
780 let __receiver = <Grounding_Leg as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
781 ::unity::il2cpp_call!((::unity::module_base()+0x1cdb970usize)as*mut u8,crate::unity_engine::raycasthit::RaycastHit;
782(Grounding_Leg)__receiver)
783 }
784 }
785 #[doc = "`set_capsuleHit(crate::unity_engine::raycasthit::RaycastHit)` overload"]
786 fn set_capsule_hit(self, value: impl ::core::convert::Into<crate::unity_engine::raycasthit::RaycastHit>) -> () {
787 unsafe {
788 let __receiver = <Grounding_Leg as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
789 ::unity::il2cpp_call!((::unity::module_base()+0x1cdb9a0usize)as*mut u8,();
790(Grounding_Leg)__receiver,(crate::unity_engine::raycasthit::RaycastHit)::core::convert::Into::into(value))
791 }
792 }
793 #[doc = "`get_GetHitPoint()` overload"]
794 fn get_get_hit_point(self) -> crate::unity_engine::raycasthit::RaycastHit {
795 unsafe {
796 let __receiver = <Grounding_Leg as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
797 ::unity::il2cpp_call!((::unity::module_base()+0x1cdb9c0usize)as*mut u8,crate::unity_engine::raycasthit::RaycastHit;
798(Grounding_Leg)__receiver)
799 }
800 }
801 #[doc = "`SetFootPosition(crate::unity_engine::vector3::Vector3)` overload"]
802 fn set_foot_position(self, position: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>) -> () {
803 unsafe {
804 let __receiver = <Grounding_Leg as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
805 ::unity::il2cpp_call!((::unity::module_base()+0x1cdba20usize)as*mut u8,();
806(Grounding_Leg)__receiver,(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(position))
807 }
808 }
809 #[doc = "`Initiate(crate::root_motion::final_ik::grounding::Grounding, crate::unity_engine::transform::Transform)` overload"]
810 fn initiate(
811 self,
812 grounding: impl ::core::convert::Into<crate::root_motion::final_ik::grounding::Grounding>,
813 transform: impl ::core::convert::Into<crate::unity_engine::transform::Transform>,
814 ) -> () {
815 unsafe {
816 let __receiver = <Grounding_Leg as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
817 ::unity::il2cpp_call!((::unity::module_base()+0x1cdba40usize)as*mut u8,();
818(Grounding_Leg)__receiver,(crate::root_motion::final_ik::grounding::Grounding)::core::convert::Into::into(grounding),(crate::unity_engine::transform::Transform)::core::convert::Into::into(transform))
819 }
820 }
821 #[doc = "`OnEnable()` overload"]
822 fn on_enable(self) -> () {
823 unsafe {
824 let __receiver = <Grounding_Leg as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
825 ::unity::il2cpp_call!((::unity::module_base()+0x1cdbb00usize)as*mut u8,();
826(Grounding_Leg)__receiver)
827 }
828 }
829 #[doc = "`Reset()` overload"]
830 fn reset(self) -> () {
831 unsafe {
832 let __receiver = <Grounding_Leg as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
833 ::unity::il2cpp_call!((::unity::module_base()+0x1cdbb50usize)as*mut u8,();
834(Grounding_Leg)__receiver)
835 }
836 }
837 #[doc = "`Process()` overload"]
838 fn process(self) -> () {
839 unsafe {
840 let __receiver = <Grounding_Leg as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
841 ::unity::il2cpp_call!((::unity::module_base()+0x1cdbbd0usize)as*mut u8,();
842(Grounding_Leg)__receiver)
843 }
844 }
845 #[doc = "`get_stepHeightFromGround()` overload"]
846 fn get_step_height_from_ground(self) -> f32 {
847 unsafe {
848 let __receiver = <Grounding_Leg as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
849 ::unity::il2cpp_call!((::unity::module_base()+0x1cdceb0usize)as*mut u8,f32;
850(Grounding_Leg)__receiver)
851 }
852 }
853 #[doc = "`GetCapsuleHit(crate::unity_engine::vector3::Vector3)` overload"]
854 fn get_capsule_hit_2(
855 self,
856 offset_from_heel: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>,
857 ) -> crate::unity_engine::raycasthit::RaycastHit {
858 unsafe {
859 let __receiver = <Grounding_Leg as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
860 ::unity::il2cpp_call!((::unity::module_base()+0x1cdcb70usize)as*mut u8,crate::unity_engine::raycasthit::RaycastHit;
861(Grounding_Leg)__receiver,(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(offset_from_heel))
862 }
863 }
864 #[doc = "`GetRaycastHit(crate::unity_engine::vector3::Vector3)` overload"]
865 fn get_raycast_hit(
866 self,
867 offset_from_heel: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>,
868 ) -> crate::unity_engine::raycasthit::RaycastHit {
869 unsafe {
870 let __receiver = <Grounding_Leg as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
871 ::unity::il2cpp_call!((::unity::module_base()+0x1cdc550usize)as*mut u8,crate::unity_engine::raycasthit::RaycastHit;
872(Grounding_Leg)__receiver,(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(offset_from_heel))
873 }
874 }
875 #[doc = "`RotateNormal(crate::unity_engine::vector3::Vector3)` overload"]
876 fn rotate_normal(self, normal: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>) -> crate::unity_engine::vector3::Vector3 {
877 unsafe {
878 let __receiver = <Grounding_Leg as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
879 ::unity::il2cpp_call!((::unity::module_base()+0x1cdcf40usize)as*mut u8,crate::unity_engine::vector3::Vector3;
880(Grounding_Leg)__receiver,(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(normal))
881 }
882 }
883 #[doc = "`SetFootToPoint(crate::unity_engine::vector3::Vector3, crate::unity_engine::vector3::Vector3)` overload"]
884 fn set_foot_to_point(
885 self,
886 normal: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>,
887 point: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>,
888 ) -> () {
889 unsafe {
890 let __receiver = <Grounding_Leg as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
891 ::unity::il2cpp_call!((::unity::module_base()+0x1cdc7b0usize)as*mut u8,();
892(Grounding_Leg)__receiver,(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(normal),(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(point))
893 }
894 }
895 #[doc = "`SetFootToPlane(crate::unity_engine::vector3::Vector3, crate::unity_engine::vector3::Vector3, crate::unity_engine::vector3::Vector3)` overload"]
896 fn set_foot_to_plane(
897 self,
898 plane_normal: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>,
899 plane_point: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>,
900 heel_hit_point: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>,
901 ) -> () {
902 unsafe {
903 let __receiver = <Grounding_Leg as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
904 ::unity::il2cpp_call!((::unity::module_base()+0x1cdc900usize)as*mut u8,();
905(Grounding_Leg)__receiver,(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(plane_normal),(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(plane_point),(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(heel_hit_point))
906 }
907 }
908 #[doc = "`GetHeightFromGround(crate::unity_engine::vector3::Vector3)` overload"]
909 fn get_height_from_ground_2(self, hit_point: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>) -> f32 {
910 unsafe {
911 let __receiver = <Grounding_Leg as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
912 ::unity::il2cpp_call!((::unity::module_base()+0x1cdcfb0usize)as*mut u8,f32;
913(Grounding_Leg)__receiver,(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(hit_point))
914 }
915 }
916 #[doc = "`RotateFoot()` overload"]
917 fn rotate_foot(self) -> () {
918 unsafe {
919 let __receiver = <Grounding_Leg as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
920 ::unity::il2cpp_call!((::unity::module_base()+0x1cdced0usize)as*mut u8,();
921(Grounding_Leg)__receiver)
922 }
923 }
924 #[doc = "`GetRotationOffsetTarget()` overload"]
925 fn get_rotation_offset_target(self) -> crate::unity_engine::quaternion::Quaternion {
926 unsafe {
927 let __receiver = <Grounding_Leg as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
928 ::unity::il2cpp_call!((::unity::module_base()+0x1cdd100usize)as*mut u8,crate::unity_engine::quaternion::Quaternion;
929(Grounding_Leg)__receiver)
930 }
931 }
932 #[doc = "`get_rootYOffset()` overload"]
933 fn get_root_y_offset(self) -> f32 {
934 unsafe {
935 let __receiver = <Grounding_Leg as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
936 ::unity::il2cpp_call!((::unity::module_base()+0x1cdd070usize)as*mut u8,f32;
937(Grounding_Leg)__receiver)
938 }
939 }
940 #[doc = "`.ctor()` overload"]
941 fn ctor(self) -> () {
942 unsafe {
943 let __receiver = <Grounding_Leg as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
944 ::unity::il2cpp_call!((::unity::module_base()+0x1cdd1a0usize)as*mut u8,();
945(Grounding_Leg)__receiver)
946 }
947 }
948}
949
950#[cfg(feature = "root_motion-final_ik-grounding")]
951impl<__T: IGrounding_Leg> IGrounding_LegMethods for __T {}
952
953#[cfg(feature = "root_motion-final_ik-grounding")]
954impl Grounding_Leg {
955 pub fn get_is_grounded_method_info() -> &'static ::unity::il2cpp::MethodInfo {
956 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
957 }
958
959 pub fn set_is_grounded_method_info() -> &'static ::unity::il2cpp::MethodInfo {
960 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
961 }
962
963 pub fn get_ik_position_method_info() -> &'static ::unity::il2cpp::MethodInfo {
964 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
965 }
966
967 pub fn set_ik_position_method_info() -> &'static ::unity::il2cpp::MethodInfo {
968 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
969 }
970
971 pub fn get_initiated_method_info() -> &'static ::unity::il2cpp::MethodInfo {
972 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
973 }
974
975 pub fn set_initiated_method_info() -> &'static ::unity::il2cpp::MethodInfo {
976 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
977 }
978
979 pub fn get_height_from_ground_method_info() -> &'static ::unity::il2cpp::MethodInfo {
980 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
981 }
982
983 pub fn set_height_from_ground_method_info() -> &'static ::unity::il2cpp::MethodInfo {
984 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
985 }
986
987 pub fn get_velocity_method_info() -> &'static ::unity::il2cpp::MethodInfo {
988 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
989 }
990
991 pub fn set_velocity_method_info() -> &'static ::unity::il2cpp::MethodInfo {
992 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
993 }
994
995 pub fn get_transform_method_info() -> &'static ::unity::il2cpp::MethodInfo {
996 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
997 }
998
999 pub fn set_transform_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1000 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
1001 }
1002
1003 pub fn get_ik_offset_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1004 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
1005 }
1006
1007 pub fn set_ik_offset_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1008 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
1009 }
1010
1011 pub fn get_heel_hit_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1012 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
1013 }
1014
1015 pub fn set_heel_hit_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1016 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
1017 }
1018
1019 pub fn get_capsule_hit_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1020 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
1021 }
1022
1023 pub fn set_capsule_hit_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1024 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
1025 }
1026
1027 pub fn get_get_hit_point_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1028 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
1029 }
1030
1031 pub fn set_foot_position_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1032 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[19]
1033 }
1034
1035 pub fn initiate_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1036 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[20]
1037 }
1038
1039 pub fn on_enable_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1040 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[21]
1041 }
1042
1043 pub fn reset_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1044 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[22]
1045 }
1046
1047 pub fn process_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1048 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[23]
1049 }
1050
1051 pub fn get_step_height_from_ground_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1052 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[24]
1053 }
1054
1055 pub fn get_capsule_hit_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1056 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[25]
1057 }
1058
1059 pub fn get_raycast_hit_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1060 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[26]
1061 }
1062
1063 pub fn rotate_normal_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1064 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[27]
1065 }
1066
1067 pub fn set_foot_to_point_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1068 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[28]
1069 }
1070
1071 pub fn set_foot_to_plane_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1072 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[29]
1073 }
1074
1075 pub fn get_height_from_ground_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1076 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[30]
1077 }
1078
1079 pub fn rotate_foot_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1080 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[31]
1081 }
1082
1083 pub fn get_rotation_offset_target_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1084 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[32]
1085 }
1086
1087 pub fn get_root_y_offset_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1088 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[33]
1089 }
1090
1091 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1092 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[34]
1093 }
1094}
1095
1096#[cfg(feature = "root_motion-final_ik-grounding")]
1097impl Grounding_Leg {
1098 #[doc = "`.ctor()` — no args"]
1099 pub fn new() -> Self {
1100 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
1101 panic!(
1102 "{}
1103::{}
1104 failed to instantiate",
1105 ::core::stringify!(Grounding_Leg),
1106 ::core::stringify!(new),
1107 )
1108 });
1109 <Self as IGrounding_LegMethods>::ctor(this);
1110 this
1111 }
1112}
1113
1114#[cfg(feature = "root_motion-final_ik-grounding")]
1115#[doc(hidden)]
1116pub mod prelude {
1117 pub use super::{
1118 Grounding, Grounding_Leg, Grounding_Pelvis, Grounding_Quality, IGrounding, IGroundingMethods, IGrounding_Leg, IGrounding_LegMethods,
1119 IGrounding_Pelvis, IGrounding_PelvisMethods,
1120 };
1121 #[cfg(feature = "system-object")]
1122 pub use crate::system::object::IObjectMethods;
1123 #[cfg(feature = "system-enum")]
1124 pub use crate::system::r#enum::IEnumMethods;
1125 #[cfg(feature = "system-valuetype")]
1126 pub use crate::system::valuetype::IValueTypeMethods;
1127 pub use crate::system::{object::IObject, r#enum::IEnum, valuetype::IValueType};
1128}