〰️Rod IK

Implements IHandIK to control hand IK targets for the fishing rod. Toggles IK on/off and switches hand positions between default, handle, and reel poses.

Requires:

  • Malbers’ TransformHook components for right and left hands.

  • A BoolReference (e.g., Animator bool parameter) to drive IK activation.


🔧 Inspector Settings

Use IK

  • BoolReference that enables/disables the use of IK

Right Hand

  • Right Hand Transform Hook: Malbers TransformHook that sets the right hand’s IK target.

  • Right Hand Default Pos: Default position for the right hand when not gripping the handle.

  • Right Hand Handler Pos: Position when gripping the rod handle.

Left Hand

  • Left Hand Transform Hook: Malbers TransformHook for the left hand’s IK target.

  • Left Hand Default Pos: Neutral position.

  • Left Hand Reel Pos: Position when operating the reel.


📈 Key Behavior

IK Control

  • OnToggleHandIK(bool): Sets _useIK.Value to enable/disable IK globally.

  • EnableIK() / DisableIK(): Public helpers that do the same.

Hand Switching

  • SwitchRightHand(): Swaps right hand target between Default and Handle.

  • SwitchLeftHand(): Swaps left hand target between Default and Reel Pose.

  • After switching, calls UpdateHook() to immediately apply the new target.

Integration

  • Designed to work with HandIK_Behaviour

  • Uses Malbers’ TransformHook system for IK target assignment.

Last updated