Copy to Mirror Position
CreatiCode last edited by info-creaticode
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.
You need to choose the mirror type when you use the “copy to mirror position” block. As shown, there are 7 options.
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”
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.
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”.
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:
This option also adds 3 copies that are opposite in the X and Z positions.
This option also adds 3 copies that are opposite in the Y and Z positions.
This option would add 7 copies that are opposite in the X, Y and Z positions. For example: