Navigation

    CreatiCode Scratch Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • CreatiCode

    设置摄像头目标

    三维积木
    1
    1
    199
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • C
      CreatiCode TA 2 last edited by admin

       

      预备知识

      • 在三维场景导航中使用轨道摄像头
      • 三维坐标和位置

       

      介绍

      每个摄像头都有它看向的目标位置。这个位置是看不见的,但是你可以通过提供新目标位置的x/y/z坐标来改变它。

       

      演示

      在这个程序中,我们首先添加三个分别坐落在X位置=150,0和150的盒子。过后我们添加一个新的轨道摄像头。默认情况下,摄像头将会看向原点(x=0)。

      当我们把摄像头的目标位置改编成 x=-150时,它会移向左边,看向在左边的青色盒子。同样的,当目标x是150时,摄像头会看向在右边的粉色盒子。

       

       
      动手时刻:

      https://play.creaticode.com/projects/4b0759677c498e7a48f581c5

       

      了解更多

      • 阅读摄像头特性
      1 Reply Last reply Reply Quote 0
      • Pinned by  info-creaticode info-creaticode 
      • First post
        Last post