移动玩家需要先修改控制器,再把控制器的数据给到组件
- 旋转
- 非玩家:
- set actor world rotation
- 面朝玩家:find look at rotation + rinterp to
- 玩家:
- 首先修改控制器
- get control rotation -> set world rotation
- 非玩家:
- 移动
- 玩家
-
起手式:获取玩家控制器
-
add input vector
-
向前:get control rotation -> get forward vector
-
向右:get control rotation -> get right vector
-
向上:get control rotation -> get up vector
-
- 玩家