I am trying to rotate a canvas with canvas and move an object at the same time . The problem is that with rotation, the canvas coordinate system also revolves, so when my object is considered to move with the y axis, I get the case, but the y axis is rotated in place of x axis. it is a mess. Is there any way to go around this?
This matrix is using mathematics; If you do things in the opposite order (then translate alternately, or vice versa), then you will get the opposite effect.
In addition, use the set matrix (empty) to clear the matrix for identification between operations; Not sure if there is such a disturbance that is bothering you.
Comments
Post a Comment