Struct game_kernel::game_kernel::core_systems::base::transform::TransformComponent[][src]

pub struct TransformComponent {
    pub position: Vector3<f32>,
    pub rotation: Vector3<f32>,
    pub scale: Vector3<f32>,
}

Fields

position: Vector3<f32>rotation: Vector3<f32>scale: Vector3<f32>

Implementations

impl TransformComponent[src]

pub fn component_new(
    args: HashMap<String, Arc<dyn Any + Send + Sync + 'static>>
) -> Result<Arc<RefCell<dyn Component>>, ComponentCreationError>
[src]

pub fn identity() -> Self[src]

pub fn from_pos_rot_scale(
    position: Vector3<f32>,
    rotation: Vector3<f32>,
    scale: Vector3<f32>
) -> Self
[src]

pub fn translate(self, translation: Vector3<f32>) -> Self[src]

pub fn get_matrix(&self) -> Matrix4<f32>[src]

Trait Implementations

impl Clone for TransformComponent[src]

impl Component for TransformComponent[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Content for T[src]

impl<T> Downcast for T where
    T: Any
[src]

impl<T> DowncastSync for T where
    T: Send + Sync + Any
[src]

impl<T> Erased for T

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> SafeBorrow<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.