pub struct PrevTransform(pub Transform);Expand description
Where an entity was at the start of the last tick: a frame between two
ticks draws it part of the way from there to its Transform, by the
frame’s alpha.
The engine keeps it. The system nadir::snapshot copies each
Transform into it at the start of every tick. It also gives one to
every entity with a Sprite that has none, and to the entity each
drawn Parent chain ends at, so a game does not add it. To move an
entity at once, with nothing drawn on the way (a teleport), write both
its Transform and this, in a fixed system: a drawn entity has one
from the start of its first tick.
Tuple Fields§
§0: TransformTrait Implementations§
Source§impl Clone for PrevTransform
impl Clone for PrevTransform
impl Component for PrevTransform
impl Copy for PrevTransform
Source§impl Debug for PrevTransform
impl Debug for PrevTransform
Source§impl PartialEq for PrevTransform
impl PartialEq for PrevTransform
impl StructuralPartialEq for PrevTransform
Auto Trait Implementations§
impl Forget for PrevTransform
impl Freeze for PrevTransform
impl Move for PrevTransform
impl RefUnwindSafe for PrevTransform
impl Send for PrevTransform
impl Sync for PrevTransform
impl Unpin for PrevTransform
impl UnsafeUnpin for PrevTransform
impl UnwindSafe for PrevTransform
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