Struct smooth_bevy_cameras::LookTransform
source · pub struct LookTransform {
pub eye: Vec3,
pub target: Vec3,
pub up: Vec3,
}
Expand description
An eye and the target it’s looking at. As a component, this can be modified in place of bevy’s Transform
, and the two will
stay in sync.
Fields§
§eye: Vec3
§target: Vec3
§up: Vec3
Implementations§
Trait Implementations§
source§impl Clone for LookTransform
impl Clone for LookTransform
source§fn clone(&self) -> LookTransform
fn clone(&self) -> LookTransform
Returns a copy 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 moresource§impl Component for LookTransformwhere
Self: Send + Sync + 'static,
impl Component for LookTransformwhere Self: Send + Sync + 'static,
source§impl Debug for LookTransform
impl Debug for LookTransform
source§impl From<LookTransform> for Transform
impl From<LookTransform> for Transform
source§fn from(t: LookTransform) -> Self
fn from(t: LookTransform) -> Self
Converts to this type from the input type.
impl Copy for LookTransform
Auto Trait Implementations§
impl RefUnwindSafe for LookTransform
impl Send for LookTransform
impl Sync for LookTransform
impl Unpin for LookTransform
impl UnwindSafe for LookTransform
Blanket Implementations§
§impl<C> Bundle for Cwhere
C: Component,
impl<C> Bundle for Cwhere C: Component,
fn component_ids( components: &mut Components, storages: &mut Storages, ids: &mut impl FnMut(ComponentId) )
unsafe fn from_components<T, F>(ctx: &mut T, func: &mut F) -> Cwhere F: for<'a> FnMut(&'a mut T) -> OwningPtr<'a, Aligned>,
fn get_components( self, func: &mut impl FnMut(StorageType, OwningPtr<'_, Aligned>) )
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere T: Any,
§fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.