pub struct IKCCD { /* private fields */ }Expand description
IKCC — CCD IK solver (v0, 24 bytes)
Cyclic Coordinate Descent IK solver with base/target bones and vertical search range.
Implementations§
Source§impl IKCCD
impl IKCCD
Sourcepub fn dependents(&self) -> &[u16]
pub fn dependents(&self) -> &[u16]
Dependent bone indices (U16_)
Zero-copy view of the underlying std::vector.
Sourcepub fn dependents_mut(&mut self) -> &mut [u16]
pub fn dependents_mut(&mut self) -> &mut [u16]
Zero-copy mutable view. Resize first — the borrow forbids it after.
pub fn set_dependents(&mut self, values: &[u16])
pub fn resize_dependents(&mut self, count: usize)
pub fn set_bone_base(&mut self, value: u16)
Sourcepub fn bone_target(&self) -> u16
pub fn bone_target(&self) -> u16
Target bone index
pub fn set_bone_target(&mut self, value: u16)
pub fn set_search_up(&mut self, value: f32)
Sourcepub fn search_down(&self) -> f32
pub fn search_down(&self) -> f32
Search range downward
pub fn set_search_down(&mut self, value: f32)
Trait Implementations§
impl Send for IKCCD
Auto Trait Implementations§
impl !Sync for IKCCD
impl Freeze for IKCCD
impl RefUnwindSafe for IKCCD
impl Unpin for IKCCD
impl UnsafeUnpin for IKCCD
impl UnwindSafe for IKCCD
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