pub struct AimConstraint {
pub source: u32,
pub aim_axis: AimAxis,
pub weight: f32,
}Expand description
An aim constraint: rotate the destination so aim_axis points at the
source node.
Fields§
§source: u32Raw glTF node index toward which the destination points.
aim_axis: AimAxisDestination local axis that points toward the source.
weight: f32Constraint influence in the inclusive range from zero to one.
Trait Implementations§
Source§impl Clone for AimConstraint
impl Clone for AimConstraint
Source§impl Debug for AimConstraint
impl Debug for AimConstraint
Source§impl<'de> Deserialize<'de> for AimConstraint
impl<'de> Deserialize<'de> for AimConstraint
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 AimConstraint
impl RefUnwindSafe for AimConstraint
impl Send for AimConstraint
impl Sync for AimConstraint
impl Unpin for AimConstraint
impl UnsafeUnpin for AimConstraint
impl UnwindSafe for AimConstraint
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