Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • CreatiCode
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

CreatiCode Scratch Forum

  1. CreatiCode Forum
  2. 知识库
  3. 三维积木
  4. 三维坐标系

三维坐标系

Scheduled Pinned Locked Moved 三维积木
1 Posts 1 Posters 1.4k Views
  • 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 Offline
    C Offline
    CreatiCode TA 2
    wrote on last edited by admin
    #1

     

    预备知识

    • 创建一个三维场景

     

    介绍

    在二维程序中,我们利用两个箭头分别代表X轴和Y轴的方向。在三维程序中,我们会利用三个箭头来代表X轴、Y轴和Z轴的方向。

    https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/cb9cce5f-5882-4043-b925-78d5f67a9f5e.gif" width="900" style="">

     
    你可以利用以下编程积木添加3个轴线来代表X,Y和Z的方向。

    https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/c3b226a3-a75d-4855-9ffe-175435a05992.png" width="400" style="">

     

    参数

    • 可视与否: 如果选项为”是“,三维轴将会被显示。如果选项为”否“,三维轴会被隐藏。
    • 轴线长度: 控制3个轴线长度的参数,默认长度为500.

     

    特点

    默认状况下,X轴指向右方,Y轴指向荧幕里侧,Z轴指向上方。这三条轴线将会从同一个被称为原点的点出发,这个点也是三维世界的中心点。

    三条轴线的相反方向被称为”负“方向。举个例子,X的负方向指向左方,因为左方和X轴的方向相反。

    当你移动摄像头并从上方往下观察,你将会发现X轴和Y轴和而为轴线一模一样。好处是,大多数情况下,大部分物体只会在平地移动,所以我们在这些情况下只需要处理X和Y的方向即可。

    https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/fc6d7f22-add0-4b1e-9382-c61d20a3e566.gif" width="500" style="border-radius: 5px; border: 1px solid #29622d;">

     

    Z轴的注意事项

    许多人往往会忘记Z 轴是指向上方的纵轴。 为了帮助你记住它,你可以把字母“Z”想象成楼梯的形状,它可以帮助你上楼:

    https://cdncreaticodecom.b-cdn.net/awsuploads/947564/images/9257159/pasted-from-clipboard.png" width="300" style="border-radius: 5px; border: 1px solid #29622d;">

     

    程序例子

    请注意,你必须在加载 3D 轴之前创建 3D 场景:

    https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/d60b8b57-60e9-4dd1-9e06-9b603582185b.png" width="400" style="filter: drop-shadow(0.35rem 0.35rem 0.4rem rgba(0, 0, 0, 0.5));">

     

    了解更多

    • 在三维场景中添加盒子
    1 Reply Last reply
    0
    • CreatiCodeI 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
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • CreatiCode