I want to know how to mirror a part across a certain axis.
Example (y axis - ignore translation)
The y axis is inverted, but how would I code that in?
Note:
This is not solved by adding 180 degrees to the rotation but inverting the y axis. As I want to mirror the part.
I know the :Inverse() function exists, but how could you do this without that?
This topic will also serve as a tutorial for other developers for the years to come. Enjoy!
to be clear, you want it like a mirror? so like you press a button and the buttons mirror on top of each other upsidedown? like in real like when you place a block on a mirror the block is mirrored liked so?
I am making a building system for a game I have. I want the side that is opposite from the side the player is placing blocks to be reflected. If you look at this image:
The right side if reflected on the left side.
Edit:
(Across a certain axis)
(Not all axis at the same time)
Note that position does not have to be mirrored - I have already solved that. (but thanks for trying). Only the rotation has to be mirrored. Thanks for helping!
This works for any object that is mirrored on both sides, like a wedge. But not a corner wedge. I can just apply an object specific offset to the mirrored side and get the intended results. Hopefully. Going to test now.