pub struct AvatarHuman {Show 18 fields
pub root: Xform,
pub skeleton: AvatarSkeleton,
pub pose: Vec<Xform>,
pub left_hand: Vec<i64>,
pub right_hand: Vec<i64>,
pub bone_index: Vec<i64>,
pub bone_mass: Vec<f32>,
pub scale: f32,
pub arm_twist: f32,
pub fore_arm_twist: f32,
pub upper_leg_twist: f32,
pub leg_twist: f32,
pub arm_stretch: f32,
pub leg_stretch: f32,
pub feet_spacing: f32,
pub has_left_hand: bool,
pub has_right_hand: bool,
pub has_translation_dof: bool,
}Expand description
A humanoid’s compiled data (Human): the human skeleton with its pose and axes, which skeleton bone each human bone
is (bone_index, -1 for none), the proportions the retargeting uses.
Fields§
§root: Xformm_RootX.
skeleton: AvatarSkeletonm_Skeleton: the human skeleton.
pose: Vec<Xform>m_SkeletonPose: a transform for each node of the human skeleton.
left_hand: Vec<i64>m_LeftHand’s m_HandBoneIndex.
right_hand: Vec<i64>m_RightHand’s m_HandBoneIndex.
bone_index: Vec<i64>m_HumanBoneIndex: which skeleton bone each human bone is, -1 for none.
bone_mass: Vec<f32>m_HumanBoneMass.
scale: f32m_Scale.
arm_twist: f32m_ArmTwist.
fore_arm_twist: f32m_ForeArmTwist.
upper_leg_twist: f32m_UpperLegTwist.
leg_twist: f32m_LegTwist.
arm_stretch: f32m_ArmStretch.
leg_stretch: f32m_LegStretch.
feet_spacing: f32m_FeetSpacing.
has_left_hand: boolm_HasLeftHand.
has_right_hand: boolm_HasRightHand.
has_translation_dof: boolm_HasTDoF.
Trait Implementations§
Source§impl Clone for AvatarHuman
impl Clone for AvatarHuman
Source§impl Debug for AvatarHuman
impl Debug for AvatarHuman
Source§impl PartialEq for AvatarHuman
impl PartialEq for AvatarHuman
Source§impl Serialize for AvatarHuman
impl Serialize for AvatarHuman
impl StructuralPartialEq for AvatarHuman
Auto Trait Implementations§
impl Freeze for AvatarHuman
impl RefUnwindSafe for AvatarHuman
impl Send for AvatarHuman
impl Sync for AvatarHuman
impl Unpin for AvatarHuman
impl UnsafeUnpin for AvatarHuman
impl UnwindSafe for AvatarHuman
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