Navigation

    CreatiCode Scratch Forum

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

    Copy to Mirror Position

    3D Blocks
    1
    1
    268
    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.
    • info-creaticode
      CreatiCode last edited by admin

       

      Prerequisite

      • Copy by Matrix

       
       

      Description

      A lot of objects around us are symmetric. For example, the four wheels of a car are at mirror positions to each other, either between the left and right sides, or between the front and back sides.

       
      If you have added one wheel, it would be great if you can just copy it to the other 3 positions, right? You can actually easily do that using the “copy to mirror position” block:


       
      Note that the copied objects will share the same data as the original object, such as material, animation and parent object.

       
       

      The Mirror Position Type

      You need to choose the mirror type when you use the “copy to mirror position” block. As shown, there are 7 options.
       

      Left-Right

      If you choose “left-right”, then a new copy of the current sprite object will be placed at the mirror position along the X-axis.

      For example, if the sprite object is at X of 150, then the new copy will be placed at X of -150. But if the original object is at X of -150, then its copy will be at X of 150. The copy will have the same Y and Z positions as the original object.

       

      If the original object has been rotated around the Z-axis, then the copied object will be rotated in the opposite direction. For example, as shown below, the original box has been rotated 30 degrees, so the copied box is rotated for -30 degrees.

       
       
      Lastly, the name of the copied object would reflect the mirror type. In this example, if the original object is named “a”, then its copy on the left side will be named “a_left”

       
       

      Front-Back

      This option also adds a copy, which will be placed at the mirror position along the Y-axis. For example, if the original object is at Y of 100, then the copy will be at Y of -100. The name of the copy would also contain the word “_front” or “_back”.

      The rotation angle around the Z-axis will be in the opposite direction as well.

       
       

      Up-Down

      This option also adds a single copy, which will be placed at the mirror position along the Z-axis. For example, if the original object is at Z of 50, then the copy will be at Z of -50. The name of the copy would also contain the word “_up” or “_down”.

       

      Left-Right + Front-Back

      This option allows you to add 3 copies. One copy will be for the “left-right” type, one copy for “front-back”, and the third copy will be at a mirror position that is opposite in both the X and Y positions.

       
      The name of the copied objects will also reflect their mirror type:

       
       

      Left-Right + Up-Down

      This option also adds 3 copies that are opposite in the X and Z positions.

       

      Front-Back + Up-Down

      This option also adds 3 copies that are opposite in the Y and Z positions.
       
       

      All

      This option would add 7 copies that are opposite in the X, Y and Z positions. For example:

       

      1 Reply Last reply Reply Quote 0
      • Pinned by  info-creaticode info-creaticode 
      • First post
        Last post