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.0k 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位置来直接移动一个物体,但我们强烈建议你使用“设置速度”编程积木。

     

    “设置速度”编程积木

     
    https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/9f693fc6-eee1-43c4-bb4d-ed6013548230.png" width="300" style="">

     

    速度种类

    系统有8种速度让你选择:

    • 前进速度: 这是物体每秒会向前移动的距离。如果速度数值是负数,那么物体将会向后移动。默认情况下,物体会沿着Y轴的正向方向移动,但是如果他转向了围绕着Z轴的另一方向,那物体的移动方向将会跟随新方向。在任何情况下,物体的Z位置在向前或向后移动时都会保持一样。

     
    https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/ec754de6-d27f-440d-97c6-643cd6fd893c.gif" width="900" style="margin-left: 40px; border-radius: 5px; border: 1px solid #29622d;">

     

    • 侧移速度: 这是物体每秒会向侧边,也就是右边移动的速度。如果速度数值为负数,那么物体将会移向左边。默认情况下物体系那个会沿着负数的X方向移动,但是如果他转向了围绕着Z轴的另一方向,那么侧移的方向也会被改变。在任何情况下,物体在侧移时,Z位置都会保持不变。

     
    https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/f2b3e363-a8a3-4970-beea-6f7950db0496.gif" width="900" style="margin-left: 40px; border-radius: 5px; border: 1px solid #29622d;">

     

    • 上升速度: 这是每秒物体会向上移动的距离。当数值是负数时,物体会向下降落。但是,**当Z位置为0时,物体会停止降落。**这个功能在你把平地设置在z=0的位置时非常有用。

     
    https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/f29e93aa-b674-4372-a4e2-e4b7fc62d7cc.gif" width="900" style="margin-left: 40px; border-radius: 5px; border: 1px solid #29622d;">

     

    • 前进加速度: 这是前进速度每秒增加多少的数值。如果数值是负数,那么物体的前进速度将会减缓。举个例子,如果一个物体的前进速度是100,而我们把前进加速度设置成-100,那么前进速度减缓到0只需要一秒的时间,一秒以后,物体会开始向后移动。

     
    https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/7e9af32f-9308-4303-81fa-eb0269c0f485.gif" width="900" style="margin-left: 40px; border-radius: 5px; border: 1px solid #29622d;">

     

    • 重力加速度: 这个数值控制每秒上升速度下降多少。这个数值一定要大于或等于0。举个例子,如果我们把上升速度设置成100而重力加速度设置成100,那么物体的上升速度将会减缓到0,然后变成负数。

     
    https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/49800ec6-393b-4379-8245-35fcc874df5b.gif" width="900" style="margin-left: 40px; border-radius: 5px; border: 1px solid #29622d;">

     

    • Z轴旋转: 这是物体围绕着Z轴旋转的速度。如果旋转速度大于0,从Z轴上方观察的话物体将会顺时针旋转;反之,物体将会逆时针旋转。虽然你可以使用“旋转至”或者“转向”编程积木来达到相似的效果,但是我们建议你使用“Z轴旋转”编程积木,它可以帮你节省写重复循环的时间,同时生成更顺畅的动画。

     
    https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/424bfc6d-c686-4d29-b54d-1d9a931bde11.gif" width="900" style="margin-left: 40px; border-radius: 5px; border: 1px solid #29622d;">

     

    • X轴旋转 和 Y轴旋转: 这两个速度跟Z轴旋转的功能非常相似,只是他们围绕旋转的轴线不一样。

     

    “物体的特征”编程积木

    你可以通过以下编程积木来找出一个物体的现有速度:

    https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/5d87f15b-c044-460d-9dc1-9e31b4170765.png" width="500" style="">
     

    特征名称

    这个列表包含了所有速度种类,以及一些其他的特征。

     

    物体名称

    这是你要检查的物体的物体名称。如果他是空白的,那么系统将报告现有角色物体的速度。

     

    角色名称

    如果那个物体是在另一个角色里被创建的,那你就需要指定那个角色的名称。如果角色名称栏保留空白,物体将被假设是来自现有的角色。

     

    了解更多

    • 追踪摄像头
    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