[][src]Struct crystal_engine::ModelData

pub struct ModelData {
    pub position: Vector3<f32>,
    pub rotation: Euler<Rad<f32>>,
    pub scale: f32,
    pub groups: Vec<ModelDataGroup>,
    // some fields omitted
}

Data of a model. This is behind an Arc<RwLock<>> so that the engine can keep a copy and check the latest values.

For an example on how to use this, see the example in the root of this module. This is the value passed in ModelHandle::modify.

Fields

position: Vector3<f32>

The current position in the world that this model exists at.

rotation: Euler<Rad<f32>>

The rotation of this model, in euler angles.

scale: f32

The scale of this model.

groups: Vec<ModelDataGroup>

Contains the data of the groups in the model. If your 3d model has multiple parts, you can move them individually with this property.

Trait Implementations

impl Debug for ModelData[src]

Auto Trait Implementations

impl !RefUnwindSafe for ModelData

impl !Send for ModelData

impl !Sync for ModelData

impl Unpin for ModelData

impl !UnwindSafe for ModelData

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> From<T> for T[src]

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

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

impl<T> SetParameter for T

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.