Struct ambient_api::core::transform::concepts::TransformableOptional
source · pub struct TransformableOptional {
pub translation: Option<Vec3>,
pub rotation: Option<Quat>,
pub scale: Option<Vec3>,
}
Expand description
Optional part of Transformable.
Fields§
§translation: Option<Vec3>
Component: ambient_core::transform::translation
Suggested value: Vec3::new(0f32, 0f32, 0f32, )
Component description: The translation/position of this entity.
rotation: Option<Quat>
Component: ambient_core::transform::rotation
Suggested value: Quat::from_xyzw(0f32, 0f32, 0f32, 1f32, )
Component description: The rotation of this entity.
scale: Option<Vec3>
Component: ambient_core::transform::scale
Suggested value: Vec3::new(1f32, 1f32, 1f32, )
Component description: The scale of this entity.
Trait Implementations§
source§impl Clone for TransformableOptional
impl Clone for TransformableOptional
source§fn clone(&self) -> TransformableOptional
fn clone(&self) -> TransformableOptional
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 Debug for TransformableOptional
impl Debug for TransformableOptional
source§impl Default for TransformableOptional
impl Default for TransformableOptional
source§fn default() -> TransformableOptional
fn default() -> TransformableOptional
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for TransformableOptional
impl<'de> Deserialize<'de> for TransformableOptional
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<TransformableOptional, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<TransformableOptional, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for TransformableOptional
impl PartialEq for TransformableOptional
source§fn eq(&self, other: &TransformableOptional) -> bool
fn eq(&self, other: &TransformableOptional) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for TransformableOptional
impl Serialize for TransformableOptional
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for TransformableOptional
Auto Trait Implementations§
impl RefUnwindSafe for TransformableOptional
impl Send for TransformableOptional
impl Sync for TransformableOptional
impl Unpin for TransformableOptional
impl UnwindSafe for TransformableOptional
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
source§impl<T> Downcast for T
impl<T> Downcast for T
source§impl<T> ElementComponentName for T
impl<T> ElementComponentName for T
source§fn element_component_name(&self) -> &'static str
fn element_component_name(&self) -> &'static str
Returns the name of the type implementing ElementComponent.