Skip to main content

engage/generated/root_motion/final_ik/
twistsolver.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "root_motion-final_ik-twistsolver-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::system::object::{IObject, Object};
9
10    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/root_motion/final_ik/twistsolver/TwistSolver.md"))]
11    #[::unity::class(namespace = "RootMotion.FinalIK", name = "TwistSolver")]
12    #[parent(crate::system::object::Object)]
13    pub struct TwistSolver {
14        #[offset(16)]
15        #[rename(name = "transform")]
16        pub transform: crate::unity_engine::transform::Transform,
17        #[offset(24)]
18        #[rename(name = "parent")]
19        pub parent: crate::unity_engine::transform::Transform,
20        #[offset(32)]
21        #[rename(name = "children")]
22        pub children: ::unity::Array<crate::unity_engine::transform::Transform>,
23        #[offset(40)]
24        #[rename(name = "weight")]
25        pub weight: f32,
26        #[offset(44)]
27        #[rename(name = "parentChildCrossfade")]
28        pub parent_child_crossfade: f32,
29        #[offset(48)]
30        #[rename(name = "twistAngleOffset")]
31        pub twist_angle_offset: f32,
32        #[offset(52)]
33        #[rename(name = "twistAxis")]
34        pub twist_axis: crate::unity_engine::vector3::Vector3,
35        #[offset(64)]
36        #[rename(name = "axis")]
37        pub axis: crate::unity_engine::vector3::Vector3,
38        #[offset(76)]
39        #[rename(name = "axisRelativeToParentDefault")]
40        pub axis_relative_to_parent_default: crate::unity_engine::vector3::Vector3,
41        #[offset(88)]
42        #[rename(name = "axisRelativeToChildDefault")]
43        pub axis_relative_to_child_default: crate::unity_engine::vector3::Vector3,
44        #[offset(104)]
45        #[rename(name = "childRotations")]
46        pub child_rotations: ::unity::Array<crate::unity_engine::quaternion::Quaternion>,
47        #[offset(112)]
48        #[rename(name = "inititated")]
49        pub inititated: bool,
50    }
51}
52
53#[cfg(feature = "root_motion-final_ik-twistsolver-types")]
54pub use __types::*;
55
56#[cfg(feature = "root_motion-final_ik-twistsolver")]
57pub trait ITwistSolverMethods: ITwistSolver {
58    #[doc = "`.ctor()` overload"]
59    fn ctor(self) -> () {
60        unsafe {
61            let __receiver = <TwistSolver as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
62            ::unity::il2cpp_call!((::unity::module_base()+0x1a02fb0usize)as*mut u8,();
63(TwistSolver)__receiver)
64        }
65    }
66    #[doc = "`Initiate()` overload"]
67    fn initiate(self) -> () {
68        unsafe {
69            let __receiver = <TwistSolver as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
70            ::unity::il2cpp_call!((::unity::module_base()+0x1a024d0usize)as*mut u8,();
71(TwistSolver)__receiver)
72        }
73    }
74    #[doc = "`Relax()` overload"]
75    fn relax(self) -> () {
76        unsafe {
77            let __receiver = <TwistSolver as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
78            ::unity::il2cpp_call!((::unity::module_base()+0x1a02990usize)as*mut u8,();
79(TwistSolver)__receiver)
80        }
81    }
82}
83
84#[cfg(feature = "root_motion-final_ik-twistsolver")]
85impl<__T: ITwistSolver> ITwistSolverMethods for __T {}
86
87#[cfg(feature = "root_motion-final_ik-twistsolver")]
88impl TwistSolver {
89    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
90        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
91    }
92
93    pub fn initiate_method_info() -> &'static ::unity::il2cpp::MethodInfo {
94        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
95    }
96
97    pub fn relax_method_info() -> &'static ::unity::il2cpp::MethodInfo {
98        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
99    }
100}
101
102#[cfg(feature = "root_motion-final_ik-twistsolver")]
103impl TwistSolver {
104    #[doc = "`.ctor()` — no args"]
105    pub fn new() -> Self {
106        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
107            panic!(
108                "{}
109::{}
110 failed to instantiate",
111                ::core::stringify!(TwistSolver),
112                ::core::stringify!(new),
113            )
114        });
115        <Self as ITwistSolverMethods>::ctor(this);
116        this
117    }
118}
119
120#[cfg(feature = "root_motion-final_ik-twistsolver")]
121#[doc(hidden)]
122pub mod prelude {
123    pub use super::{ITwistSolver, ITwistSolverMethods, TwistSolver};
124    pub use crate::system::object::IObject;
125    #[cfg(feature = "system-object")]
126    pub use crate::system::object::IObjectMethods;
127}