pub enum IKTarget {
Enemy(EntityId),
Position(Vec3),
Offset(Vec3),
LookDirection(Vec3),
None,
}Expand description
What an IK chain is targeting.
Variants§
Enemy(EntityId)
Track a specific entity (e.g., current enemy).
Position(Vec3)
Fixed world position.
Offset(Vec3)
Offset relative to the owning entity’s position.
LookDirection(Vec3)
Orient toward a direction (head/eye tracking).
None
No target (chain relaxes to rest pose).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for IKTarget
impl RefUnwindSafe for IKTarget
impl Send for IKTarget
impl Sync for IKTarget
impl Unpin for IKTarget
impl UnsafeUnpin for IKTarget
impl UnwindSafe for IKTarget
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