2924人加入学习
(21人评价)
DARK SOULS 黑暗之魂游戏复刻(第一季)

制作完成于2022-08-08,基于Unity 2019.3.2

价格 免费

- 将输入行为和动画控制进行分离;

-  InputHandler:

绑定InputSystem 的 performed Action

捕获输入参数: horizontal Vertical moveAmount mouseX mouseY

实现 TickInput方法, 

 

- PlayerLocoMotion.cs:

实现移动:

inputHandler.tickInput()

velocity -> 

rb.velocity

实现旋转:

var dir = Quaternion.LookRotation(targetV);
        rb.rotation = Quaternion.Slerp(rb.rotation, dir, rotationSpeed * delta);

 

 

[展开全文]

授课教师

SiKi学院老师

课程特色

下载资料(1)
视频(60)

学员动态