pub struct ClothProxy { /* private fields */ }Expand description
PHAC — Cloth proxy (v0, 32 bytes)
Maps cloth vertices to proxy geometry for collision.
Implementations§
Source§impl ClothProxy
impl ClothProxy
Sourcepub fn proxy_index(&self) -> u32
pub fn proxy_index(&self) -> u32
Proxy mesh index
pub fn set_proxy_index(&mut self, value: u32)
Sourcepub fn cloth_index(&self) -> u32
pub fn cloth_index(&self) -> u32
Cloth mesh index
pub fn set_cloth_index(&mut self, value: u32)
Sourcepub fn proxy_vertices(&self) -> &[u64]
pub fn proxy_vertices(&self) -> &[u64]
Proxy vertex data (U64_)
Zero-copy view of the underlying std::vector.
Sourcepub fn proxy_vertices_mut(&mut self) -> &mut [u64]
pub fn proxy_vertices_mut(&mut self) -> &mut [u64]
Zero-copy mutable view. Resize first — the borrow forbids it after.
pub fn set_proxy_vertices(&mut self, values: &[u64])
pub fn resize_proxy_vertices(&mut self, count: usize)
Sourcepub fn proxy_weights(&self) -> &[u32]
pub fn proxy_weights(&self) -> &[u32]
Proxy blend weights (U32_)
Zero-copy view of the underlying std::vector.
Sourcepub fn proxy_weights_mut(&mut self) -> &mut [u32]
pub fn proxy_weights_mut(&mut self) -> &mut [u32]
Zero-copy mutable view. Resize first — the borrow forbids it after.
pub fn set_proxy_weights(&mut self, values: &[u32])
pub fn resize_proxy_weights(&mut self, count: usize)
Trait Implementations§
Source§impl Debug for ClothProxy
impl Debug for ClothProxy
Source§impl Default for ClothProxy
impl Default for ClothProxy
Source§impl Drop for ClothProxy
impl Drop for ClothProxy
impl Send for ClothProxy
Auto Trait Implementations§
impl !Sync for ClothProxy
impl Freeze for ClothProxy
impl RefUnwindSafe for ClothProxy
impl Unpin for ClothProxy
impl UnsafeUnpin for ClothProxy
impl UnwindSafe for ClothProxy
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