设置摄像头参数
-
预备知识
介绍
当你把一个轨道摄像头添加到场景里后,你可以利用以下积木设置它的距离、角度(俯视角度,仰视角度),同时它也支持动画效果。

参数
-
距离: 摄像头与目标之间的距离。
-
俯视角度: 摄像头俯视角度的度数。
-
侧视角度: 摄像头侧视角度的度数。
-
目标 X/Y/Z:摄像头目标点(摄像头正在注视的点)的位置。如不设置,那么摄像头将把目标设定为原点,即 x = 0, y = 0, z = 0的位置。
-
时长: 如果时长为 0 或没有填入任何数值,那么距离、俯视角度和侧视角度会在程序运行时被立刻改变。反之,以上三个参数会随着时长而逐渐改变,直到变成被设置的参数为止,参数逐渐改变的过程会创造出一个动态的摄像头视角。
演示
在这个程序中,我们让摄像头围着物体旋转5秒。
https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/3e56cf3a-b9d5-479e-8748-d71aa1d7a2b8.gif" width="900" style="border-radius: 5px; border: 1px solid #29622d;">
你可以打开这个项目试试看:https://play.creaticode.cn/projects/64d3629d786c29288acc4218
-
-
I CreatiCode pinned this topic on
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login