Struct dotrix_core::assets::Animation [−][src]
Implementations
impl Animation
[src]
pub fn new() -> Self
[src]
pub fn duration(&self) -> Duration
[src]
pub fn add_translation_channel(
&mut self,
joint_id: usize,
interpolation: Interpolation,
timestamps: Vec<f32>,
translations: Vec<Vec3>
)
[src]
&mut self,
joint_id: usize,
interpolation: Interpolation,
timestamps: Vec<f32>,
translations: Vec<Vec3>
)
pub fn add_rotation_channel(
&mut self,
joint_id: usize,
interpolation: Interpolation,
timestamps: Vec<f32>,
rotations: Vec<Quat>
)
[src]
&mut self,
joint_id: usize,
interpolation: Interpolation,
timestamps: Vec<f32>,
rotations: Vec<Quat>
)
pub fn add_scale_channel(
&mut self,
joint_id: usize,
interpolation: Interpolation,
timestamps: Vec<f32>,
scales: Vec<Vec3>
)
[src]
&mut self,
joint_id: usize,
interpolation: Interpolation,
timestamps: Vec<f32>,
scales: Vec<Vec3>
)
pub fn sample(&self, keyframe: f32) -> HashMap<usize, TransformBuilder>
[src]
Trait Implementations
impl AssetMapGetter<Animation> for Assets
[src]
fn map(&self) -> &HashMap<Id<Animation>, Animation>
[src]
fn map_mut(&mut self) -> &mut HashMap<Id<Animation>, Animation>
[src]
impl Default for Animation
[src]
Auto Trait Implementations
impl RefUnwindSafe for Animation
[src]
impl Send for Animation
[src]
impl Sync for Animation
[src]
impl Unpin for Animation
[src]
impl UnwindSafe for Animation
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Component for T where
T: 'static + Send + Sync,
[src]
T: 'static + Send + Sync,
impl<T> Downcast<T> for T
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
impl<T> SystemContext for T where
T: 'static + Default + Send + Sync,
[src]
T: 'static + Default + Send + Sync,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.