[−][src]Struct crystal_engine::ModelData
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
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]
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,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Content for T
[src]
fn ref_from_ptr(ptr: *mut c_void, size: usize) -> Option<*mut T>
[src]
fn is_size_suitable(size: usize) -> bool
[src]
fn indiv_size() -> usize
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> SafeBorrow<T> for T
[src]
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
T: Parameter<Self>,
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.
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>,