<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[设置摄像头参数]]></title><description><![CDATA[<p dir="auto"> </p>
<h2><a class="anchor-offset" name="预备知识"></a>预备知识</h2>
<ul>
<li><a href="/topic/193/%E4%BD%BF%E7%94%A8%E8%BD%A8%E9%81%93%E6%91%84%E5%83%8F%E5%A4%B4%E8%A7%82%E5%AF%9F%E5%9C%BA%E6%99%AF">使用轨道摄像头观察场景</a></li>
</ul>
<p dir="auto"> </p>
<h2><a class="anchor-offset" name="介绍"></a>介绍</h2>
<p dir="auto">当你把一个轨道摄像头添加到场景里后，你可以利用以下积木设置它的距离、角度（俯视角度，仰视角度），同时它也支持动画效果。</p>
<p dir="auto"><img src="https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/6642a25c-43ad-40d0-ae84-b98528a388c8.png" alt="477d7ec0-b015-4157-98bb-71f73b7be74f-image.png" class=" img-responsive img-markdown" width="887" height="65" /></p>
<p dir="auto"> </p>
<h3><a class="anchor-offset" name="参数"></a>参数</h3>
<ul>
<li>
<p dir="auto"><strong>距离</strong>: 摄像头与目标之间的距离。</p>
</li>
<li>
<p dir="auto"><strong>俯视角度</strong>: 摄像头俯视角度的度数。</p>
</li>
<li>
<p dir="auto"><strong>侧视角度</strong>: 摄像头侧视角度的度数。</p>
</li>
<li>
<p dir="auto"><strong>目标 X/Y/Z</strong>：摄像头目标点（摄像头正在注视的点）的位置。如不设置，那么摄像头将把目标设定为原点，即 x = 0, y = 0, z = 0的位置。</p>
</li>
<li>
<p dir="auto"><strong>时长</strong>: 如果时长为 0 或没有填入任何数值，那么距离、俯视角度和侧视角度会在程序运行时被立刻改变。反之，以上三个参数会随着时长而逐渐改变，直到变成被设置的参数为止，参数逐渐改变的过程会创造出一个动态的摄像头视角。</p>
</li>
</ul>
<p dir="auto"> </p>
<h2><a class="anchor-offset" name="演示"></a>演示</h2>
<p dir="auto">在这个程序中，我们让摄像头围着物体旋转5秒。</p>
<p dir="auto"><img src="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" /></p>
<p dir="auto"> <br />
你可以打开这个项目试试看:</p>
<p dir="auto"><a href="https://play.creaticode.cn/projects/64d3629d786c29288acc4218" target="_blank" rel="noopener noreferrer nofollow ugc">https://play.creaticode.cn/projects/64d3629d786c29288acc4218</a></p>
]]></description><link>https://forum.creaticode.com/topic/197/设置摄像头参数</link><generator>RSS for Node</generator><lastBuildDate>Sat, 14 Mar 2026 08:28:16 GMT</lastBuildDate><atom:link href="https://forum.creaticode.com/topic/197.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 15 Jun 2022 16:16:33 GMT</pubDate><ttl>60</ttl></channel></rss>