Enum AnimationTarget
pub enum AnimationTarget {
Position,
Rotation,
Scale,
}Expand description
What a channel moves (AnimationChannel.Targets): its sampled value is added to the part’s
position, rotation or scale (ModelPart.offsetPos, offsetRotation, offsetScale).
Variants§
Position
The part’s position, in texels (minecraft:position).
Rotation
The part’s rotation, in radians (minecraft:rotation).
Scale
The part’s scale, as an offset from 1 (minecraft:scale).
Trait Implementations§
§impl Clone for AnimationTarget
impl Clone for AnimationTarget
§fn clone(&self) -> AnimationTarget
fn clone(&self) -> AnimationTarget
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 moreimpl Copy for AnimationTarget
§impl Debug for AnimationTarget
impl Debug for AnimationTarget
impl Eq for AnimationTarget
§impl PartialEq for AnimationTarget
impl PartialEq for AnimationTarget
impl StructuralPartialEq for AnimationTarget
Auto Trait Implementations§
impl Freeze for AnimationTarget
impl RefUnwindSafe for AnimationTarget
impl Send for AnimationTarget
impl Sync for AnimationTarget
impl Unpin for AnimationTarget
impl UnsafeUnpin for AnimationTarget
impl UnwindSafe for AnimationTarget
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