[−][src]Struct bevy_transform::components::Transform
Fields
translation: Vec3
rotation: Quat
scale: Vec3
Implementations
impl Transform
[src]
pub fn identity() -> Self
[src]
pub fn from_matrix(matrix: Mat4) -> Self
[src]
pub fn from_translation(translation: Vec3) -> Self
[src]
pub fn from_rotation(rotation: Quat) -> Self
[src]
pub fn from_scale(scale: Vec3) -> Self
[src]
pub fn looking_at(self, target: Vec3, up: Vec3) -> Self
[src]
Returns transform with the same translation and scale, but rotation so that transform.forward() points at target
pub fn compute_matrix(&self) -> Mat4
[src]
pub fn forward(&self) -> Vec3
[src]
pub fn rotate(&mut self, rotation: Quat)
[src]
Rotate the transform by the given rotation
pub fn mul_transform(&self, transform: Transform) -> Self
[src]
pub fn mul_vec3(&self, value: Vec3) -> Vec3
[src]
pub fn apply_non_uniform_scale(&mut self, scale: Vec3)
[src]
pub fn look_at(&mut self, target: Vec3, up: Vec3)
[src]
Trait Implementations
impl Clone for Transform
[src]
impl Copy for Transform
[src]
impl Debug for Transform
[src]
impl Default for Transform
[src]
impl DeserializeProperty for Transform
[src]
fn deserialize(
deserializer: &mut dyn Deserializer<'_>,
property_type_registry: &PropertyTypeRegistry
) -> Result<Box<dyn Property>, Error>
[src]
deserializer: &mut dyn Deserializer<'_>,
property_type_registry: &PropertyTypeRegistry
) -> Result<Box<dyn Property>, Error>
impl From<GlobalTransform> for Transform
[src]
fn from(transform: GlobalTransform) -> Self
[src]
impl From<Transform> for GlobalTransform
[src]
impl Mul<Transform> for GlobalTransform
[src]
type Output = GlobalTransform
The resulting type after applying the *
operator.
fn mul(self, transform: Transform) -> Self::Output
[src]
impl Mul<Transform> for Transform
[src]
type Output = Transform
The resulting type after applying the *
operator.
fn mul(self, transform: Transform) -> Self::Output
[src]
impl Mul<Vec3> for Transform
[src]
type Output = Vec3
The resulting type after applying the *
operator.
fn mul(self, value: Vec3) -> Self::Output
[src]
impl PartialEq<Transform> for Transform
[src]
impl Properties for Transform
[src]
fn prop(&self, name: &str) -> Option<&dyn Property>
[src]
fn prop_mut(&mut self, name: &str) -> Option<&mut dyn Property>
[src]
fn prop_with_index(&self, index: usize) -> Option<&dyn Property>
[src]
fn prop_with_index_mut(&mut self, index: usize) -> Option<&mut dyn Property>
[src]
fn prop_name(&self, index: usize) -> Option<&str>
[src]
fn prop_len(&self) -> usize
[src]
fn iter_props(&self) -> PropertyIter<'_>
[src]
fn set_prop(&mut self, name: &str, value: &(dyn Property + 'static))
[src]
fn to_dynamic(&self) -> DynamicProperties
[src]
impl Property for Transform
[src]
fn type_name(&self) -> &str
[src]
fn any(&self) -> &dyn Any
[src]
fn any_mut(&mut self) -> &mut dyn Any
[src]
fn clone_prop(&self) -> Box<dyn Property>
[src]
fn set(&mut self, value: &dyn Property)
[src]
fn apply(&mut self, value: &dyn Property)
[src]
fn as_properties(&self) -> Option<&dyn Properties>
[src]
fn serializable<'a>(
&'a self,
registry: &'a PropertyTypeRegistry
) -> Serializable<'a>
[src]
&'a self,
registry: &'a PropertyTypeRegistry
) -> Serializable<'a>
fn property_type(&self) -> PropertyType
[src]
impl StructuralPartialEq for Transform
[src]
Auto Trait Implementations
impl RefUnwindSafe for Transform
impl Send for Transform
impl Sync for Transform
impl Unpin for Transform
impl UnwindSafe for Transform
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,
T: 'static + Send + Sync,
impl<T> Downcast for T where
T: Any,
T: Any,
pub fn into_any(self: Box<T>) -> Box<dyn Any + 'static>
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
pub fn as_any(&self) -> &(dyn Any + 'static)
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
impl<T> DowncastSync for T where
T: Send + Sync + Any,
T: Send + Sync + Any,
impl<T> From<T> for T
[src]
impl<T> FromResources for T where
T: Default,
[src]
T: Default,
pub fn from_resources(_resources: &Resources) -> T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<P> PropertiesVal for P where
P: Properties,
[src]
P: Properties,
pub fn prop_val<T>(&self, name: &str) -> Option<&T> where
T: 'static,
[src]
T: 'static,
pub fn set_prop_val<T>(&mut self, name: &str, value: T) where
T: 'static,
[src]
T: 'static,
impl<T> Resource for T where
T: 'static + Send + Sync,
[src]
T: 'static + Send + Sync,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
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.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,