pub struct JointProportion {
pub joint: String,
pub scale: f32,
pub length: f32,
}Expand description
One joint’s proportion change.
Fields§
§joint: StringName of the joint in the target mesh’s skeleton.
scale: f32Uniform scale applied to the joint (and, through the hierarchy,
everything below it). 1 leaves it alone.
length: f32Extra length along the bone, in model units: every child joint is
pushed that far along its bind direction from this joint. 0 leaves
it alone.
Trait Implementations§
Source§impl Clone for JointProportion
impl Clone for JointProportion
Source§fn clone(&self) -> JointProportion
fn clone(&self) -> JointProportion
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for JointProportion
impl Debug for JointProportion
Source§impl Default for JointProportion
impl Default for JointProportion
Source§fn default() -> JointProportion
fn default() -> JointProportion
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for JointProportionwhere
JointProportion: Default,
impl<'de> Deserialize<'de> for JointProportionwhere
JointProportion: Default,
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<JointProportion, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<JointProportion, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for JointProportion
impl PartialEq for JointProportion
Source§impl Serialize for JointProportion
impl Serialize for JointProportion
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for JointProportion
Auto Trait Implementations§
impl Freeze for JointProportion
impl RefUnwindSafe for JointProportion
impl Send for JointProportion
impl Sync for JointProportion
impl Unpin for JointProportion
impl UnsafeUnpin for JointProportion
impl UnwindSafe for JointProportion
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