移动相机 [英] Moving a camera

查看:22
本文介绍了移动相机的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的 3D 游戏中有一个摄像头.我有一个开始向量和结束向量来定位.我想把它从第一个向量平滑地移动到最后一个向量.

I have a camera in my 3D game. I have a start vector and and end vector for its positioning. I am wanting to move it smoothly from the first vector to the end vector.

最好的方法是什么?

推荐答案

你必须这样做:StartVector + EndVector * StepValue

You have to do that: StartVector + EndVector * StepValue

现在,您必须决定要遵循的步骤(StepValue),当然您必须将其放入计时器中以控制速度.

Now, you have to decide the step you want to follow (StepValue), and ofcourse you have to put this in a timer in order to control the speed.

这篇关于移动相机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆