pub struct BoneInit {
pub parent: Option<BoneIndex>,
pub rest_position: Vec3A,
pub inverse_bind_matrix: Mat4,
pub transform_order: i32,
pub transform_after_physics: bool,
pub fixed_axis: Option<Vec3A>,
pub enforce_fixed_axis: bool,
}Fields§
§parent: Option<BoneIndex>§rest_position: Vec3A§inverse_bind_matrix: Mat4§transform_order: i32§transform_after_physics: bool§fixed_axis: Option<Vec3A>§enforce_fixed_axis: boolWhen true, ordinary world-pose evaluation projects local rotation onto
fixed_axis. PMX import keeps this false so VMD/local rotations stay
unprojected; fixed-axis still constrains CCD during IK steps via the
stored fixed_axis descriptor.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BoneInit
impl RefUnwindSafe for BoneInit
impl Send for BoneInit
impl Sync for BoneInit
impl Unpin for BoneInit
impl UnsafeUnpin for BoneInit
impl UnwindSafe for BoneInit
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more