useHandPoseTransitions hook
Manages hand pose transitions for both hands based on current animation. Automatically selects appropriate hand poses for different techniques and handles smooth transitions at 60fps.
Hand animation options
Hand states and update function
const { leftHandState, rightHandState, updateHandAnimations } = useHandPoseTransitions({ currentAnimation: "attack", attackAnimation: "jab", isBlocking: false, });// In useFrame callbackuseFrame((_, delta) => { updateHandAnimations(delta);}); Copy
const { leftHandState, rightHandState, updateHandAnimations } = useHandPoseTransitions({ currentAnimation: "attack", attackAnimation: "jab", isBlocking: false, });// In useFrame callbackuseFrame((_, delta) => { updateHandAnimations(delta);});
손자세전환훅
useHandPoseTransitions hook
Manages hand pose transitions for both hands based on current animation. Automatically selects appropriate hand poses for different techniques and handles smooth transitions at 60fps.