pub struct ClothBone { /* private fields */ }Expand description
A bone of the cloth simulation of a weighted cloth material, attached to a vertex of its mesh.
Implementations§
Source§impl ClothBone
impl ClothBone
Sourcepub fn name_padding(&self) -> &Vec<u8> ⓘ
pub fn name_padding(&self) -> &Vec<u8> ⓘ
Bytes found after the end of name in its padded field, usually leftovers of the program that wrote the file.
They’re kept so the file is written back as it was.
Sourcepub fn parent_index(&self) -> &i32
pub fn parent_index(&self) -> &i32
Index of the parent bone, or -1.
Sourcepub fn vertex_index(&self) -> &u32
pub fn vertex_index(&self) -> &u32
Index of the vertex of the mesh the bone is attached to.
Source§impl ClothBone
impl ClothBone
Sourcepub fn name_padding_mut(&mut self) -> &mut Vec<u8> ⓘ
pub fn name_padding_mut(&mut self) -> &mut Vec<u8> ⓘ
Bytes found after the end of name in its padded field, usually leftovers of the program that wrote the file.
They’re kept so the file is written back as it was.
Sourcepub fn uk_1_mut(&mut self) -> &mut Vector3<f32>
pub fn uk_1_mut(&mut self) -> &mut Vector3<f32>
Unknown values. (100, 200, 400) in every Attila file.
Sourcepub fn matrix_mut(&mut self) -> &mut Matrix3x4<f32>
pub fn matrix_mut(&mut self) -> &mut Matrix3x4<f32>
Transform of the bone.
Sourcepub fn parent_index_mut(&mut self) -> &mut i32
pub fn parent_index_mut(&mut self) -> &mut i32
Index of the parent bone, or -1.
Sourcepub fn vertex_index_mut(&mut self) -> &mut u32
pub fn vertex_index_mut(&mut self) -> &mut u32
Index of the vertex of the mesh the bone is attached to.
Source§impl ClothBone
impl ClothBone
Sourcepub fn set_name_padding(&mut self, val: Vec<u8>) -> &mut Self
pub fn set_name_padding(&mut self, val: Vec<u8>) -> &mut Self
Bytes found after the end of name in its padded field, usually leftovers of the program that wrote the file.
They’re kept so the file is written back as it was.
Sourcepub fn set_uk_1(&mut self, val: Vector3<f32>) -> &mut Self
pub fn set_uk_1(&mut self, val: Vector3<f32>) -> &mut Self
Unknown values. (100, 200, 400) in every Attila file.
Sourcepub fn set_uk_4(&mut self, val: u32) -> &mut Self
pub fn set_uk_4(&mut self, val: u32) -> &mut Self
Unknown value, the same for all the bones of a mesh.
Sourcepub fn set_matrix(&mut self, val: Matrix3x4<f32>) -> &mut Self
pub fn set_matrix(&mut self, val: Matrix3x4<f32>) -> &mut Self
Transform of the bone.
Sourcepub fn set_parent_index(&mut self, val: i32) -> &mut Self
pub fn set_parent_index(&mut self, val: i32) -> &mut Self
Index of the parent bone, or -1.
Sourcepub fn set_vertex_index(&mut self, val: u32) -> &mut Self
pub fn set_vertex_index(&mut self, val: u32) -> &mut Self
Index of the vertex of the mesh the bone is attached to.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ClothBone
impl<'de> Deserialize<'de> for ClothBone
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl StructuralPartialEq for ClothBone
Auto Trait Implementations§
impl Freeze for ClothBone
impl RefUnwindSafe for ClothBone
impl Send for ClothBone
impl Sync for ClothBone
impl Unpin for ClothBone
impl UnsafeUnpin for ClothBone
impl UnwindSafe for ClothBone
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
ReadEndian::read_from_little_endian().impl<T> Scalar for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.