pub struct IKTwoJoint { /* private fields */ }Expand description
IK2J — Two-joint IK solver (v0, 48 bytes)
Classic two-bone IK (e.g. elbow/knee) with hinge axis, angle limits, and search range for target acquisition.
Implementations§
Source§impl IKTwoJoint
impl IKTwoJoint
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 (e.g. forearm/shin)
pub fn set_bone_target(&mut self, value: u16)
pub fn set_bone_end(&mut self, value: u16)
pub fn set_padding(&mut self, value: u16)
Sourcepub fn hinge_axis(&self) -> Vector3f
pub fn hinge_axis(&self) -> Vector3f
Hinge rotation axis
pub fn set_hinge_axis(&mut self, value: Vector3f)
Sourcepub fn max_angle_inner(&self) -> f32
pub fn max_angle_inner(&self) -> f32
Maximum inner angle
pub fn set_max_angle_inner(&mut self, value: f32)
Sourcepub fn max_angle_outer(&self) -> f32
pub fn max_angle_outer(&self) -> f32
Maximum outer angle
pub fn set_max_angle_outer(&mut self, value: f32)
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§
Source§impl Debug for IKTwoJoint
impl Debug for IKTwoJoint
Source§impl Default for IKTwoJoint
impl Default for IKTwoJoint
Source§impl Drop for IKTwoJoint
impl Drop for IKTwoJoint
impl Send for IKTwoJoint
Auto Trait Implementations§
impl !Sync for IKTwoJoint
impl Freeze for IKTwoJoint
impl RefUnwindSafe for IKTwoJoint
impl Unpin for IKTwoJoint
impl UnsafeUnpin for IKTwoJoint
impl UnwindSafe for IKTwoJoint
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