pub struct IKJoint { /* private fields */ }Expand description
IKJT — IK joint (v0, 32 bytes)
Inverse kinematics joint with raycast up/down range, max speed, and goal threshold for terrain-following or foot-planting.
Implementations§
Source§impl IKJoint
impl IKJoint
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)
Sourcepub fn bone_index_1(&self) -> u16
pub fn bone_index_1(&self) -> u16
First bone index
pub fn set_bone_index_1(&mut self, value: u16)
Sourcepub fn bone_index_2(&self) -> u16
pub fn bone_index_2(&self) -> u16
Second bone index
pub fn set_bone_index_2(&mut self, value: u16)
Sourcepub fn raycast_up(&self) -> f32
pub fn raycast_up(&self) -> f32
Raycast upward distance
pub fn set_raycast_up(&mut self, value: f32)
Sourcepub fn raycast_down(&self) -> f32
pub fn raycast_down(&self) -> f32
Raycast downward distance
pub fn set_raycast_down(&mut self, value: f32)
pub fn set_max_speed(&mut self, value: f32)
Sourcepub fn goal_threshold(&self) -> f32
pub fn goal_threshold(&self) -> f32
Goal distance threshold
pub fn set_goal_threshold(&mut self, value: f32)
Trait Implementations§
impl Send for IKJoint
Auto Trait Implementations§
impl !Sync for IKJoint
impl Freeze for IKJoint
impl RefUnwindSafe for IKJoint
impl Unpin for IKJoint
impl UnsafeUnpin for IKJoint
impl UnwindSafe for IKJoint
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