-
I want to mirror or flip the entity by some lines or just x-axis and y-axis. |
Beta Was this translation helpful? Give feedback.
Answered by
mozman
Sep 24, 2021
Replies: 1 comment 1 reply
-
The mirror transformation is scaling by negative values. Mirror along the x-axis is |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
chibai
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The mirror transformation is scaling by negative values. Mirror along the x-axis is
entity.scale(-1, 1, 1)
orentity.transform(Matrix44.scale(-1, 1, 1))
. Mirroring about an arbitrary line (plane) is not implemented, but creating such a transformation matrix can possibly be found using Google.