• Advertisement
Sign in to follow this  

Need guidance for "tilt" transformation

This topic is 1893 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello all,

I am currently working on a game project and I was wondering if anyone could help me with a particular transformation. The transformation I am looking to accomplish is the "tilt" transformation similar to the Google Maps application in Android or the Apple Maps application on iOS. The tilt gesture I am talking about should be well known to anyone who uses either of these platforms. I have been trying to figure out the mathematical transformation required to mimic this effect. I initially thought a rotation on the x-axis would work, but that did not create the desired effect. I then tried rotation on the x-axis with compensation in the y-direction, which does give the effect to a degree, but it doesn't seem the same. Does anyone know what the transformation they are doing is? Thanks in advance.

-Adam

Share this post


Link to post
Share on other sites
Advertisement
I figured it out, hopefully this will help someone in the future. The solution was to do a scale in the y direction, followed by a shear in the yz slot (i.e. slot m[1][2]) Edited by metsfan

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement