程序化瞄准(ik_hand_gun)2

仅供列表展示、文章无内容,仅供列表展示、文章无内容,仅供列表展示、文章无内容。

type
status
date
slug
summary
tags
category
icon
password
先要设定虚拟骨骼
notion image
鼠标选中head骨骼右键添加虚拟骨骼 选择ik_hand_gun 仅完成程序化瞄准用这一个虚拟骨骼就够了
PS:VB head_ik_hand_r: 选中head添加虚拟骨骼 选择ik_hand_r
PS:VB head_ik_hand_r_ik_hand_l: 选中VB head_ik_hand_r添加虚拟骨骼 选择ik_hand_l
 
然后是计算瞄准需要用的位置和旋转 如下图 得到的AimTransform就可以直接拿来用了 注意第一人称相机是挂载到head骨骼上的
notion image
 
瞄准输入
notion image
 
动画蓝图
notion image
蓝图初始化的时候获取瞄准点 这里加了delay 等角色武器初始化完成再获取瞄准点
 
notion image
 
动画图表
notion image
 
notion image
 
notion image
 
notion image
 
notion image
到这里就已经可以实现瞄准了
 
(可选)这里是用的blend pose by bool来混合瞄准动画 你也可以用瞄准节点的Alpha 给他插值 不用blend pose也能完成效果
notion image
Loading...