Generate head recoil animation from hit
Creates keyframes for head snapping back when struck. Intensity based on hit strength.
Strength of hit (0-1)
Optional
Direction vector of hit (normalized)
Head movement keyframes for recoil animation
const recoil = createHeadRecoilAnimation(0.8, new THREE.Vector3(1, 0, 0));// Creates strong recoil animation to the right Copy
const recoil = createHeadRecoilAnimation(0.8, new THREE.Vector3(1, 0, 0));// Creates strong recoil animation to the right
머리반동애니메이션생성
Generate head recoil animation from hit
Creates keyframes for head snapping back when struck. Intensity based on hit strength.