pub struct Rig {Show 18 fields
pub twist: [f32; 4],
pub stretch: [f32; 3],
pub translation_dof: bool,
pub root_motion_bone: i32,
pub unmapped_bone: Option<usize>,
pub no_axes: Option<usize>,
pub no_tos: Option<usize>,
pub renamed: Option<usize>,
pub transform_hierarchy: bool,
pub avatar: bool,
pub body_offset: [f32; 3],
pub root_offset: bool,
pub optional: Vec<usize>,
pub bone_mass: Option<Vec<f32>>,
pub scale: f32,
pub hierarchy: bool,
pub armature: Vec<([f32; 3], [f32; 4], f32)>,
pub positions: Vec<(usize, [f32; 3])>,
}Expand description
Rig and Avatar choices. The default is a valid neutral rig.
Fields§
§twist: [f32; 4]§stretch: [f32; 3]§translation_dof: bool§root_motion_bone: i32§unmapped_bone: Option<usize>A HumanBodyBones index left unmapped in m_HumanBoneIndex.
no_axes: Option<usize>A rig bone (index into BONES) whose axes record is absent.
no_tos: Option<usize>A rig bone whose m_TOS entry is absent.
renamed: Option<usize>A rig bone whose GameObject name differs from its TOS path.
transform_hierarchy: bool§avatar: bool§body_offset: [f32; 3]The Avatar’s rest body offset m_RootX translation.
root_offset: boolMove the Animator node off the identity.
optional: Vec<usize>HumanBodyBones indices from OPTIONAL_BONES the rig adds, in order.
bone_mass: Option<Vec<f32>>m_HumanBoneMass; None stores an equal share per mapped slot.
scale: f32m_Scale.
hierarchy: boolThe Avatar’s human skeleton in HumanTrait’s hierarchy over the
present bones, at t_pose, its nodes ordered by depth (arrange);
otherwise every bone hangs on Hips at the origin.
armature: Vec<([f32; 3], [f32; 4], f32)>Nodes between the Animator node and Hips, top down, each a local
translation, rotation and uniform scale: GameObjects 90 + k
named Armature<k>, prefixing every rig path.
positions: Vec<(usize, [f32; 3])>With hierarchy, T-pose positions in the Animator frame that
replace t_pose’s, per HumanBodyBones bone.