- Home /
Unity Skew A Game Object
I am trying to make a projector in Unity. I made a cube object which projects a plane as a screen. Everything is working fine, they both rotate, scale together. I have a problem. I want to skew that screen when rotation occured. In real life projectors, when you rotate it, screen's scale changes and it will look like something like this.
Is there a way to make this scaling in Unity? I made a research but I couldn't find results I want. I am working with Unity for 1 month so I am not very good at it. Any help will be appreciated.
Are you using Unity projectors? I believe to do this all you need to do is move/rotate the projector, and ensure the projector is in perspective mode.
You do not want to rotate the projector with this object because then the projection will not have the effect you want (as it will always been in the same relative position)
Here is a good read, though it does have some shader program$$anonymous$$g in it:
http://www.reedbeta.com/blog/2012/05/26/quadrilateral-interpolation-part-1/