pub struct RollConstraint {
pub source: u32,
pub roll_axis: RollAxis,
pub weight: f32,
}Expand description
A roll constraint: rotate the destination around roll_axis to match the
source’s rotation around that same axis.
Fields§
§source: u32Raw glTF node index whose rotation drives the constraint.
roll_axis: RollAxisLocal axis around which the destination may rotate.
weight: f32Constraint influence in the inclusive range from zero to one.
Trait Implementations§
Source§impl Clone for RollConstraint
impl Clone for RollConstraint
Source§impl Debug for RollConstraint
impl Debug for RollConstraint
Source§impl<'de> Deserialize<'de> for RollConstraint
impl<'de> Deserialize<'de> for RollConstraint
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for RollConstraint
impl RefUnwindSafe for RollConstraint
impl Send for RollConstraint
impl Sync for RollConstraint
impl Unpin for RollConstraint
impl UnsafeUnpin for RollConstraint
impl UnwindSafe for RollConstraint
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