pub struct AnimTimeConvertData {
pub flags: u32,
pub begin: f32,
pub end: f32,
pub loop_end: f32,
pub loop_begin: f32,
pub speed: f32,
pub ease_in: Option<EaseCurve>,
pub ease_out: Option<EaseCurve>,
pub speed_ease: Option<EaseCurve>,
pub current_anim_time: f32,
pub last_eval_world_time: f64,
pub stop_points: Vec<f32>,
}Expand description
Parsed plAnimTimeConvert data.
Fields§
§flags: u32§begin: f32§end: f32§loop_end: f32§loop_begin: f32§speed: f32§ease_in: Option<EaseCurve>§ease_out: Option<EaseCurve>§speed_ease: Option<EaseCurve>§current_anim_time: f32§last_eval_world_time: f64§stop_points: Vec<f32>Implementations§
Source§impl AnimTimeConvertData
impl AnimTimeConvertData
Sourcepub fn read(reader: &mut impl Read) -> Result<Self>
pub fn read(reader: &mut impl Read) -> Result<Self>
Read a plAnimTimeConvert from a stream (as a creatable — class index already consumed).
pub fn is_stopped(&self) -> bool
pub fn is_looping(&self) -> bool
pub fn is_backwards(&self) -> bool
pub fn duration(&self) -> f32
Sourcepub fn world_to_anim_time(&self, world_time: f64) -> f32
pub fn world_to_anim_time(&self, world_time: f64) -> f32
Convert world time to local animation time.
Trait Implementations§
Source§impl Clone for AnimTimeConvertData
impl Clone for AnimTimeConvertData
Source§fn clone(&self) -> AnimTimeConvertData
fn clone(&self) -> AnimTimeConvertData
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for AnimTimeConvertData
impl RefUnwindSafe for AnimTimeConvertData
impl Send for AnimTimeConvertData
impl Sync for AnimTimeConvertData
impl Unpin for AnimTimeConvertData
impl UnsafeUnpin for AnimTimeConvertData
impl UnwindSafe for AnimTimeConvertData
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