engage/generated/root_motion/
bakerhumanoidqt.rs1#[cfg(feature = "root_motion-bakerhumanoidqt-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/bakerhumanoidqt/BakerHumanoidQT.md"))]
11 #[::unity::class(namespace = "RootMotion", name = "BakerHumanoidQT")]
12 #[parent(crate::system::object::Object)]
13 pub struct BakerHumanoidQT {
14 #[offset(16)]
15 #[rename(name = "transform")]
16 pub transform: crate::unity_engine::transform::Transform,
17 #[offset(24)]
18 #[rename(name = "Qx")]
19 pub qx: ::unity::Il2CppString,
20 #[offset(32)]
21 #[rename(name = "Qy")]
22 pub qy: ::unity::Il2CppString,
23 #[offset(40)]
24 #[rename(name = "Qz")]
25 pub qz: ::unity::Il2CppString,
26 #[offset(48)]
27 #[rename(name = "Qw")]
28 pub qw: ::unity::Il2CppString,
29 #[offset(56)]
30 #[rename(name = "Tx")]
31 pub tx: ::unity::Il2CppString,
32 #[offset(64)]
33 #[rename(name = "Ty")]
34 pub ty: ::unity::Il2CppString,
35 #[offset(72)]
36 #[rename(name = "Tz")]
37 pub tz: ::unity::Il2CppString,
38 #[offset(80)]
39 #[rename(name = "rotX")]
40 pub rot_x: crate::unity_engine::animationcurve::AnimationCurve,
41 #[offset(88)]
42 #[rename(name = "rotY")]
43 pub rot_y: crate::unity_engine::animationcurve::AnimationCurve,
44 #[offset(96)]
45 #[rename(name = "rotZ")]
46 pub rot_z: crate::unity_engine::animationcurve::AnimationCurve,
47 #[offset(104)]
48 #[rename(name = "rotW")]
49 pub rot_w: crate::unity_engine::animationcurve::AnimationCurve,
50 #[offset(112)]
51 #[rename(name = "posX")]
52 pub pos_x: crate::unity_engine::animationcurve::AnimationCurve,
53 #[offset(120)]
54 #[rename(name = "posY")]
55 pub pos_y: crate::unity_engine::animationcurve::AnimationCurve,
56 #[offset(128)]
57 #[rename(name = "posZ")]
58 pub pos_z: crate::unity_engine::animationcurve::AnimationCurve,
59 #[offset(136)]
60 #[rename(name = "goal")]
61 pub goal: crate::unity_engine::avatarikgoal::AvatarIKGoal,
62 #[offset(140)]
63 #[rename(name = "lastQ")]
64 pub last_q: crate::unity_engine::quaternion::Quaternion,
65 #[offset(156)]
66 #[rename(name = "lastQSet")]
67 pub last_q_set: bool,
68 }
69}
70
71#[cfg(feature = "root_motion-bakerhumanoidqt-types")]
72pub use __types::*;
73
74#[cfg(feature = "root_motion-bakerhumanoidqt")]
75pub trait IBakerHumanoidQTMethods: IBakerHumanoidQT {
76 #[doc = "`.ctor(::unity::Il2CppString)` overload"]
77 fn ctor(self, name: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
78 unsafe {
79 let __receiver = <BakerHumanoidQT as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
80 ::unity::il2cpp_call!((::unity::module_base()+0x2123930usize)as*mut u8,();
81(BakerHumanoidQT)__receiver,(::unity::Il2CppString)::core::convert::Into::into(name))
82 }
83 }
84 #[doc = "`.ctor(crate::unity_engine::transform::Transform, crate::unity_engine::avatarikgoal::AvatarIKGoal, ::unity::Il2CppString)` overload"]
85 fn ctor_2(
86 self,
87 transform: impl ::core::convert::Into<crate::unity_engine::transform::Transform>,
88 goal: impl ::core::convert::Into<crate::unity_engine::avatarikgoal::AvatarIKGoal>,
89 name: impl ::core::convert::Into<::unity::Il2CppString>,
90 ) -> () {
91 unsafe {
92 let __receiver = <BakerHumanoidQT as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
93 ::unity::il2cpp_call!((::unity::module_base()+0x2123c60usize)as*mut u8,();
94(BakerHumanoidQT)__receiver,(crate::unity_engine::transform::Transform)::core::convert::Into::into(transform),(crate::unity_engine::avatarikgoal::AvatarIKGoal)::core::convert::Into::into(goal),(::unity::Il2CppString)::core::convert::Into::into(name))
95 }
96 }
97 #[doc = "`Reset()` overload"]
98 fn reset(self) -> () {
99 unsafe {
100 let __receiver = <BakerHumanoidQT as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
101 ::unity::il2cpp_call!((::unity::module_base()+0x2123b00usize)as*mut u8,();
102(BakerHumanoidQT)__receiver)
103 }
104 }
105 #[doc = "`SetIKKeyframes(f32, crate::unity_engine::avatar::Avatar, crate::unity_engine::transform::Transform, f32, crate::unity_engine::vector3::Vector3, crate::unity_engine::quaternion::Quaternion)` overload"]
106 fn set_ik_keyframes(
107 self,
108 time: impl ::core::convert::Into<f32>,
109 avatar: impl ::core::convert::Into<crate::unity_engine::avatar::Avatar>,
110 root: impl ::core::convert::Into<crate::unity_engine::transform::Transform>,
111 human_scale: impl ::core::convert::Into<f32>,
112 body_position: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>,
113 body_rotation: impl ::core::convert::Into<crate::unity_engine::quaternion::Quaternion>,
114 ) -> () {
115 unsafe {
116 let __receiver = <BakerHumanoidQT as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
117 ::unity::il2cpp_call!((::unity::module_base()+0x2123e50usize)as*mut u8,();
118(BakerHumanoidQT)__receiver,(f32)::core::convert::Into::into(time),(crate::unity_engine::avatar::Avatar)::core::convert::Into::into(avatar),(crate::unity_engine::transform::Transform)::core::convert::Into::into(root),(f32)::core::convert::Into::into(human_scale),(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(body_position),(crate::unity_engine::quaternion::Quaternion)::core::convert::Into::into(body_rotation))
119 }
120 }
121 #[doc = "`SetKeyframes(f32, crate::unity_engine::vector3::Vector3, crate::unity_engine::quaternion::Quaternion)` overload"]
122 fn set_keyframes(
123 self,
124 time: impl ::core::convert::Into<f32>,
125 pos: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>,
126 rot: impl ::core::convert::Into<crate::unity_engine::quaternion::Quaternion>,
127 ) -> () {
128 unsafe {
129 let __receiver = <BakerHumanoidQT as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
130 ::unity::il2cpp_call!((::unity::module_base()+0x21243b0usize)as*mut u8,();
131(BakerHumanoidQT)__receiver,(f32)::core::convert::Into::into(time),(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(pos),(crate::unity_engine::quaternion::Quaternion)::core::convert::Into::into(rot))
132 }
133 }
134 #[doc = "`MoveLastKeyframes(f32)` overload"]
135 fn move_last_keyframes(self, time: impl ::core::convert::Into<f32>) -> () {
136 unsafe {
137 let __receiver = <BakerHumanoidQT as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
138 ::unity::il2cpp_call!((::unity::module_base()+0x2124490usize)as*mut u8,();
139(BakerHumanoidQT)__receiver,(f32)::core::convert::Into::into(time))
140 }
141 }
142 #[doc = "`SetLoopFrame(f32)` overload"]
143 fn set_loop_frame(self, time: impl ::core::convert::Into<f32>) -> () {
144 unsafe {
145 let __receiver = <BakerHumanoidQT as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
146 ::unity::il2cpp_call!((::unity::module_base()+0x2124740usize)as*mut u8,();
147(BakerHumanoidQT)__receiver,(f32)::core::convert::Into::into(time))
148 }
149 }
150 #[doc = "`MoveLastKeyframe(f32, crate::unity_engine::animationcurve::AnimationCurve)` overload"]
151 fn move_last_keyframe(
152 self,
153 time: impl ::core::convert::Into<f32>,
154 curve: impl ::core::convert::Into<crate::unity_engine::animationcurve::AnimationCurve>,
155 ) -> () {
156 unsafe {
157 let __receiver = <BakerHumanoidQT as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
158 ::unity::il2cpp_call!((::unity::module_base()+0x21246c0usize)as*mut u8,();
159(BakerHumanoidQT)__receiver,(f32)::core::convert::Into::into(time),(crate::unity_engine::animationcurve::AnimationCurve)::core::convert::Into::into(curve))
160 }
161 }
162 #[doc = "`MultiplyLength(crate::unity_engine::animationcurve::AnimationCurve, f32)` overload"]
163 fn multiply_length(
164 self,
165 curve: impl ::core::convert::Into<crate::unity_engine::animationcurve::AnimationCurve>,
166 mlp: impl ::core::convert::Into<f32>,
167 ) -> () {
168 unsafe {
169 let __receiver = <BakerHumanoidQT as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
170 ::unity::il2cpp_call!((::unity::module_base()+0x2124980usize)as*mut u8,();
171(BakerHumanoidQT)__receiver,(crate::unity_engine::animationcurve::AnimationCurve)::core::convert::Into::into(curve),(f32)::core::convert::Into::into(mlp))
172 }
173 }
174 #[doc = "`SetCurves(*mutcrate::unity_engine::animationclip::AnimationClip, f32, f32)` overload"]
175 fn set_curves(
176 self,
177 max_error: impl ::core::convert::Into<f32>,
178 length_mlp: impl ::core::convert::Into<f32>,
179 ) -> crate::unity_engine::animationclip::AnimationClip {
180 unsafe {
181 let __receiver = <BakerHumanoidQT as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
182 let mut __out_0 = ::core::mem::MaybeUninit::<crate::unity_engine::animationclip::AnimationClip>::uninit();
183 ::unity::il2cpp_call!((::unity::module_base()+0x2124a30usize)as*mut u8,();
184(BakerHumanoidQT)__receiver,(*mut crate::unity_engine::animationclip::AnimationClip)__out_0.as_mut_ptr(),(f32)::core::convert::Into::into(max_error),(f32)::core::convert::Into::into(length_mlp));
185 __out_0.assume_init()
186 }
187 }
188}
189
190#[cfg(feature = "root_motion-bakerhumanoidqt")]
191impl<__T: IBakerHumanoidQT> IBakerHumanoidQTMethods for __T {}
192
193#[cfg(feature = "root_motion-bakerhumanoidqt")]
194impl BakerHumanoidQT {
195 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
196 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
197 }
198
199 pub fn ctor_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
200 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
201 }
202
203 pub fn reset_method_info() -> &'static ::unity::il2cpp::MethodInfo {
204 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
205 }
206
207 pub fn set_ik_keyframes_method_info() -> &'static ::unity::il2cpp::MethodInfo {
208 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
209 }
210
211 pub fn set_keyframes_method_info() -> &'static ::unity::il2cpp::MethodInfo {
212 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
213 }
214
215 pub fn move_last_keyframes_method_info() -> &'static ::unity::il2cpp::MethodInfo {
216 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
217 }
218
219 pub fn set_loop_frame_method_info() -> &'static ::unity::il2cpp::MethodInfo {
220 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
221 }
222
223 pub fn move_last_keyframe_method_info() -> &'static ::unity::il2cpp::MethodInfo {
224 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
225 }
226
227 pub fn multiply_length_method_info() -> &'static ::unity::il2cpp::MethodInfo {
228 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
229 }
230
231 pub fn set_curves_method_info() -> &'static ::unity::il2cpp::MethodInfo {
232 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
233 }
234}
235
236#[cfg(feature = "root_motion-bakerhumanoidqt")]
237impl BakerHumanoidQT {
238 #[doc = "`.ctor(::unity::Il2CppString)` — overload selector"]
239 pub fn new(name: ::unity::Il2CppString) -> Self {
240 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
241 panic!(
242 "{}
243::{}
244 failed to instantiate",
245 ::core::stringify!(BakerHumanoidQT),
246 ::core::stringify!(new),
247 )
248 });
249 <Self as IBakerHumanoidQTMethods>::ctor(this, name);
250 this
251 }
252
253 #[doc = "`.ctor(crate::unity_engine::transform::Transform, crate::unity_engine::avatarikgoal::AvatarIKGoal, ::unity::Il2CppString)` — overload selector"]
254 pub fn new_2(
255 transform: crate::unity_engine::transform::Transform,
256 goal: crate::unity_engine::avatarikgoal::AvatarIKGoal,
257 name: ::unity::Il2CppString,
258 ) -> Self {
259 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
260 panic!(
261 "{}
262::{}
263 failed to instantiate",
264 ::core::stringify!(BakerHumanoidQT),
265 ::core::stringify!(new_2),
266 )
267 });
268 <Self as IBakerHumanoidQTMethods>::ctor_2(this, transform, goal, name);
269 this
270 }
271}
272
273#[cfg(feature = "root_motion-bakerhumanoidqt")]
274#[doc(hidden)]
275pub mod prelude {
276 pub use super::{BakerHumanoidQT, IBakerHumanoidQT, IBakerHumanoidQTMethods};
277 pub use crate::system::object::IObject;
278 #[cfg(feature = "system-object")]
279 pub use crate::system::object::IObjectMethods;
280}